|
#define | UnitSides 8 |
|
#define | MaxAttackPos 5 |
|
enum | GroupSelectionMode { SELECTABLE_BY_RECTANGLE_ONLY = 0,
NON_SELECTABLE_BY_RECTANGLE_ONLY,
SELECT_ALL
} |
|
enum | {
COWARD_INDEX = 0,
BUILDING_INDEX,
FLIP_INDEX,
REVEALER_INDEX,
LANDUNIT_INDEX,
AIRUNIT_INDEX,
SEAUNIT_INDEX,
EXPLODEWHENKILLED_INDEX,
VISIBLEUNDERFOG_INDEX,
PERMANENTCLOAK_INDEX,
DETECTCLOAK_INDEX,
ATTACKFROMTRANSPORTER_INDEX,
VANISHES_INDEX,
GROUNDATTACK_INDEX,
SHOREBUILDING_INDEX,
CANATTACK_INDEX,
BUILDEROUTSIDE_INDEX,
BUILDERLOST_INDEX,
CANHARVEST_INDEX,
HARVESTER_INDEX,
SELECTABLEBYRECTANGLE_INDEX,
ISNOTSELECTABLE_INDEX,
DECORATION_INDEX,
INDESTRUCTIBLE_INDEX,
TELEPORTER_INDEX,
SHIELDPIERCE_INDEX,
SAVECARGO_INDEX,
NONSOLID_INDEX,
WALL_INDEX,
NORANDOMPLACING_INDEX,
ORGANIC_INDEX,
SIDEATTACK_INDEX,
SKIRMISHER_INDEX,
ALWAYSTHREAT_INDEX,
ELEVATED_INDEX,
NOFRIENDLYFIRE_INDEX,
MAINFACILITY_INDEX,
NBARALREADYDEFINED
} |
|
enum | {
HP_INDEX = 0,
BUILD_INDEX,
MANA_INDEX,
TRANSPORT_INDEX,
RESEARCH_INDEX,
TRAINING_INDEX,
UPGRADINGTO_INDEX,
GIVERESOURCE_INDEX,
CARRYRESOURCE_INDEX,
XP_INDEX,
KILL_INDEX,
SUPPLY_INDEX,
DEMAND_INDEX,
ARMOR_INDEX,
SIGHTRANGE_INDEX,
ATTACKRANGE_INDEX,
PIERCINGDAMAGE_INDEX,
BASICDAMAGE_INDEX,
POSX_INDEX,
POSY_INDEX,
POS_RIGHT_INDEX,
POS_BOTTOM_INDEX,
TARGETPOSX_INDEX,
TARGETPOSY_INDEX,
RADAR_INDEX,
RADARJAMMER_INDEX,
AUTOREPAIRRANGE_INDEX,
BLOODLUST_INDEX,
HASTE_INDEX,
SLOW_INDEX,
INVISIBLE_INDEX,
UNHOLYARMOR_INDEX,
SLOT_INDEX,
SHIELD_INDEX,
POINTS_INDEX,
MAXHARVESTERS_INDEX,
POISON_INDEX,
SHIELDPERMEABILITY_INDEX,
SHIELDPIERCING_INDEX,
ISALIVE_INDEX,
PLAYER_INDEX,
PRIORITY_INDEX,
NVARALREADYDEFINED
} |
|
enum | UnitTypeType { UnitTypeLand,
UnitTypeFly,
UnitTypeNaval
} |
|
enum | DistanceTypeType {
Equal,
NotEqual,
LessThan,
LessThanEqual,
GreaterThan,
GreaterThanEqual
} |
|
std::vector< CUnitType * > | UnitTypes |
|
CUnitType * | UnitTypeHumanWall |
| All unit-types. More...
|
|
CUnitType * | UnitTypeOrcWall |
| Human wall. More...
|
|
CUnitTypeVar | UnitTypeVar |
|
CUnitType * | UnitTypeByIdent (const std::string &ident) |
| Update unit stats. More...
|
|
CUnitType * | CclGetUnitType (lua_State *l) |
|
void | UnitTypeCclRegister () |
| Access unit-type object. More...
|
|
void | UpdateUnitStats (CUnitType &type, int reset_to_default) |
| Register ccl features. More...
|
|
void | UpdateStats (int reset_to_default) |
| Update unit stats. More...
|
|
void | SaveUnitTypes (CFile &file) |
| Get unit-type by ident. More...
|
|
CUnitType * | NewUnitTypeSlot (const std::string &ident) |
| Save the unit-type table. More...
|
|
void | DrawUnitType (const CUnitType &type, CPlayerColorGraphic *sprite, int colorIndex, int frame, const PixelPos &screenPos) |
| Draw the sprite frame of unit-type. More...
|
|
void | InitUnitTypes (int reset_player_stats) |
|
void | LoadUnitTypeSprite (CUnitType &unittype) |
| Init unit-type table. More...
|
|
void | LoadUnitTypes () |
| Load the sprite for a unittype. More...
|
|
void | CleanUnitTypes () |
| Load the unit-type data. More...
|
|
void | DefineVariableField (lua_State *l, CVariable *var, int lua_index) |
| Cleanup unit-type module. More...
|
|
void | UpdateUnitVariables (CUnit &unit) |
| Update custom Variables with other variable (like Hp, ...) More...
|
|
void | SetMapStat (std::string ident, std::string variable_key, int value, std::string variable_type) |
|
void | SetMapSound (std::string ident, std::string sound, std::string sound_type, std::string sound_subtype="") |
|