|
Public Types |
| enum | {
MSG_LOGIC_LOADLEVEL = 2,
MSG_LOGIC_LOADDYNAMICS,
MSG_LOGIC_STARTGAME,
MSG_L_X,
MSG_LOGIC_SOUND,
MSG_LOGIC_BONUSITEM,
MSG_LOGIC_BOOST,
MSG_LOGIC_ROUND,
MSG_LOGIC_DIGGING,
MSG_LOGIC_FLYING,
MSG_LOGIC_PARTICLE,
MSG_LOGIC_MESSAGE
} |
Public Member Functions |
| virtual UserEntity * | addUser (ONE::util::ControlDispatcher *cp) |
| void | clear () |
| void | clearNextLevel () |
| virtual void | deserializeProps (BinaryInput &b) |
| virtual void | deserializeState (BinaryInput &b) |
| void | executeScriptEvent (int identifier, const string ¶m) |
| | GameLogic () |
| bool | getAllAnimalsReady () |
| std::string | getLevelName () const |
| PlayerEntity * | getLocalPlayer () |
| std::string | getNextLevel () const |
| int | getPlayerCount () const |
| int | getSyncableIDByIndex (int i) |
| void | init (GUISet *) |
| bool | isReadyForLoad () const |
| void | movePlayersToStart () |
| void | processMessage (int msgID, const string ¶m) |
| virtual void | removeUser (ONE::scene::UserEntity *) |
| virtual void | serializeProps (BinaryOutput &b) const |
| virtual void | serializeState (BinaryOutput &b) const |
| void | setAnimalType (PlayerEntity::type) |
| void | setApp (App *a) |
| void | setLoaded () |
| void | setNextLevel (const std::string &file, const std::string &name) |
| void | setPlayerChannels () |
| void | setPlayerHUD () |
| void | setPlayerName (const std::string &) |
| void | update (RealTime dt) |
| void | updateNetwork (RealTime) |
| | ~GameLogic () |
Static Public Member Functions |
| static void | destroyInstance () |
| static GameLogic * | getInstance () |
| static bool | isActive () |
| static bool | isDestroyed () |
| static bool | isVirgin () |
| static void | setPriority (unsigned short) |
Public Attributes |
| HUD * | hud |
| int | playersInGoal |
| int | roundsToRun |
Protected Types |
typedef ONE::util::OrderedAutomatic<
GameLogic > | Friendly |
Protected Member Functions |
| | Singleton () |
Static Protected Member Functions |
| static void | destroyedError () |
| static void | initInstance () |