Enums.h
From OPU Wiki
This header contains commonly used enum-lists. Listed below with a short explaination:
| enum compare_mode | used by comparing triggerfunctions and eventclasses. Whenever you need to check a game param, like number of units or something. See also Triggers and Events_project |
| trig_res | used by the ResourceTrigger and ResourceEvent. Determines which resource to check |
| Truck_Cargo | use this instead of map_id for Trucks |
| FoodStatus | used by Player::FoodSupply() to get a player's food status |
| MoraleLevels | used by Player::MoraleLevel() to get a player's morale level |
| UnitClassifactions | used by several group functions, to access a typegroup of units rather then a specific map_id type |
| SongIds | to select songs in combination with TethysGame::SetMusicPlayList |
[edit]
compare_mode
| cmpEqual | true if left and right oper are the same |
| cmpLowerEqual | true if left oper is lower or equal to the right oper |
| cmpGreaterEqual | true if left oper is greater or equal to the right oper |
| cmpLower | true if left oper is lower than the right oper |
| cmpGreater | true if left oper is greater than the right oper |
Back to SDK_Headers
