Inherits VictoryConditionsInterface.
Public Member Functions | |
| VictoryConditions () | |
| void | init (void) |
| void | reset (void) |
| void | update (void) |
| Bool | hasAchievedVictory (Player *player) |
| has a specific player and his allies won? | |
| Bool | hasBeenDefeated (Player *player) |
| has a specific player and his allies lost? | |
| Bool | hasSinglePlayerBeenDefeated (Player *player) |
| has a specific player lost? | |
| void | cachePlayerPtrs (void) |
| players have been created - cache the ones of interest | |
| Bool | isLocalAlliedVictory (void) |
| convenience function | |
| Bool | isLocalAlliedDefeat (void) |
| convenience function | |
| Bool | isLocalDefeat (void) |
| convenience function | |
| Bool | amIObserver (void) |
| Am I an observer?( need this for scripts ) | |
| virtual UnsignedInt | getEndFrame (void) |
| on which frame was the game effectively over? | |
Public Member Functions inherited from VictoryConditionsInterface | |
| VictoryConditionsInterface () | |
| void | setVictoryConditions (Int victoryConditions) |
| Int | getVictoryConditions (void) |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Additional Inherited Members | |
Protected Attributes inherited from VictoryConditionsInterface | |
| Int | m_victoryConditions |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Definition at line 79 of file VictoryConditions.cpp.
| VictoryConditions::VictoryConditions | ( | ) |
Definition at line 117 of file VictoryConditions.cpp.
|
inlinevirtual |
Am I an observer?( need this for scripts )
Implements VictoryConditionsInterface.
Definition at line 97 of file VictoryConditions.cpp.
|
virtual |
players have been created - cache the ones of interest
Implements VictoryConditionsInterface.
Definition at line 308 of file VictoryConditions.cpp.
|
inlinevirtual |
on which frame was the game effectively over?
Implements VictoryConditionsInterface.
Definition at line 98 of file VictoryConditions.cpp.
has a specific player and his allies won?
Implements VictoryConditionsInterface.
Definition at line 243 of file VictoryConditions.cpp.
has a specific player and his allies lost?
Implements VictoryConditionsInterface.
Definition at line 262 of file VictoryConditions.cpp.
has a specific player lost?
Implements VictoryConditionsInterface.
Definition at line 274 of file VictoryConditions.cpp.
|
virtual |
Implements VictoryConditionsInterface.
Definition at line 123 of file VictoryConditions.cpp.
|
virtual |
convenience function
Implements VictoryConditionsInterface.
Definition at line 352 of file VictoryConditions.cpp.
|
virtual |
convenience function
Implements VictoryConditionsInterface.
Definition at line 343 of file VictoryConditions.cpp.
|
virtual |
convenience function
Implements VictoryConditionsInterface.
Definition at line 361 of file VictoryConditions.cpp.
|
virtual |
Implements VictoryConditionsInterface.
Definition at line 129 of file VictoryConditions.cpp.
|
virtual |
Implements VictoryConditionsInterface.
Definition at line 147 of file VictoryConditions.cpp.