|
| | App () |
| |
| virtual void | go () |
| |
| OpenSkyNet::Utils::uint | getGameStage () |
| |
| OpenSkyNet::Utils::uint | incrementGameStage () |
| |
| virtual void | moveCamera () |
| |
| virtual | ~App () |
| |
|
| virtual bool | setup (bool restoreOgreConfig_, bool isSmokeTest_) |
| |
| void | loadTactics3DObjectsXML (const char *tactics3DObjectsXML_, bool loadWarriorsImages_) |
| |
| void | loadWarriorXML (OpenSkyNet::Utils::uint index_) |
| |
| void | loadWarriorsXMLs () |
| |
| void | loadWarriorGUI (const Warrior *warrior_, const std::string &warriorWindowPrefix_) |
| |
| void | loadWarriorsGUIs () |
| |
| void | setupDieRollCameras () |
| |
| void | setupGame () |
| |
| virtual void | setupEventHandlers () |
| |
| virtual void | createCamera () |
| |
| virtual void | createViewports () |
| |
| WARRIOR_SETUP_STAGE | getWarriorSetupStage (int warriorIndex_) const |
| |
| void | setWarriorSetupStage (int warriorIndex_, WARRIOR_SETUP_STAGE stage_) |
| |
| bool | areWarriorsSetup () const |
| |
|
| virtual bool | processUnbufferedMouseInput (const Ogre::FrameEvent &evt) |
| |
| virtual bool | frameStarted (const Ogre::FrameEvent &evt) |
| |
| virtual bool | frameEnded (const Ogre::FrameEvent &evt) |
| |
|
| virtual void | switchMouseMode () |
| |
|
| void | pFDebugDraw (Warrior *warrior_) |
| |
| void | rayTraceDebugDraw () |
| |
|
| virtual void | notifyRenderSingleObject (Ogre::Renderable *rend, const Ogre::Pass *pass, const Ogre::AutoParamDataSource *source, const Ogre::LightList *pLightList, bool suppressRenderStateChanges) |
| |
|
| bool | isOnlineGame () const |
| |
| bool | isServer () const |
| |
| bool | isClient () const |
| |
|
| OpenSkyNet::Utils::uint | getNumWarriors () const |
| |
| Warrior * | getWarrior (OpenSkyNet::Utils::uint warriorIndex_) const |
| |
| CEGUI::Window * | getWarriorWindow (const Warrior *warrior_) const |
| |
| Warrior * | getPickedWarrior () const |
| |
| void | shouldFocusOnPickedWarrior (bool shouldFocus_) |
| |
| void | focusOnWarrior (const Warrior *warrior_) |
| |
| Warrior * | pickClosestEnemyAlive (const Warrior *warrior_) |
| |
| Warrior * | pickNextEnemyAlive () |
| |
| Warrior * | pickPrevEnemyAlive () |
| |
| void | updateSpecialMoveWindow (bool reset) |
| |
| void | updateSuperPowerWindow (bool reset) |
| |
| bool | canAddWarriorAction (const Warrior *warrior_, const Action *action_, CEGUI::Window *&warriorWindow_, CEGUI::Listbox *&actionsListbox_) |
| |
| void | addWarriorAction (Warrior *warrior_, CEGUI::Listbox *actionsListbox_, Action *action_, bool updateContinuous_, bool insertInFront_=false) |
| |
| void | addWarriorActions (Warrior *warrior_, bool updateContinuous_) |
| |
| void | setTeamThatWon (Warrior::TEAM team_) |
| |
| Warrior::TEAM | getTeamThatWon () const |
| |
|
| void | saveGame () |
| |
| void | serializeTactics3DObjects (const char *tactics3DObjectsXML_) |
| |
| bool | serializePCs (const char *inputXML_, const char *outputXML_) |
| |
|
| void | destroyAllObjects (bool doDestroyPersistentData_) |
| |
| | UI (InputListener *inputListener_=0) |
| |
| void | setCanTranslateCam (bool val_) |
| |
| void | setCanRotateCam (bool val_) |
| |
| void | showDebugOverlay (bool show_) |
| |
| void | quit () |
| |
| virtual | ~UI () |
| |
| void | setTopNodeForMousePicking (Ogre::SceneNode *n_=0) |
| |
| UIScreen * | getTopScreen () const |
| |
| virtual void | pushScreen (UIScreen *screen_) |
| |
| virtual void | popScreen (bool doUnload_=true) |
| |
| void | popAndUnloadScreenNextUpdate () |
| |
| virtual bool | processUnbufferedKeyInput (const Ogre::FrameEvent &evt) |
| |
| virtual void | windowResized (Ogre::RenderWindow *rw) |
| |
| virtual void | windowClosed (Ogre::RenderWindow *rw) |
| |
| virtual void | switchKeyMode () |
| |
| InputListener * | getInputListener () |
| |
| | OgreApp () |
| |
| virtual | ~OgreApp () |
| |
| Ogre::SceneNode * | getSceneNode (const char *name_) const |
| |
| Ogre::SceneManager * | getSceneManager () const |
| |
| const Ogre::Camera * | getCam () const |
| |
| Ogre::RenderWindow * | getWindow () const |
| |
const std::vector
< Ogre::SceneNode * > & | getNonPersistentNodes () const |
| |
| virtual void | createScene (const char *sceneGraphXML_) |
| |
| Ogre::SceneNode * | createSceneNode (const char *name_, bool isPersistent_, Ogre::SceneNode *parent_) |
| |
| void | serializeSceneGraph (const char *sceneGraphXML_) |
| |
|
| bool | handleWarriorsSetupWindows (const CEGUI::EventArgs &e) |
| |
| void | handleWarriorsSetupDone () |
| |
| bool | handleActionDoneButton (const CEGUI::EventArgs &e) |
| |
| bool | handleActionCancelButton (const CEGUI::EventArgs &e) |
| |
| bool | handleActionsCombobox (const CEGUI::EventArgs &e) |
| |
| bool | handleActionsListbox (const CEGUI::EventArgs &e) |
| |
| bool | handleSpecialMoveCombobox (const CEGUI::EventArgs &e) |
| |
| bool | handleSpecialMoveSpinner (const CEGUI::EventArgs &e) |
| |
| bool | handleSpecialMoveChooseOpponentButton (const CEGUI::EventArgs &e) |
| |
| bool | handleSuperPowerCombobox (const CEGUI::EventArgs &e) |
| |
| bool | handleSuperPowerChooseButton (const CEGUI::EventArgs &e) |
| |
| virtual void | onCurrCamJustBecameWarriorPOV (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onBeginRound (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onInitiativeRolled (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onAllInitiativesRolled (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onPreGetWarriorActions (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onGetWarriorActions (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onPostGetWarriorActions (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onPostGetAllWarriorsActions (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onPreWarriorPerform (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onPostWarriorPerform (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onPostWarriorPerformAll (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onWarriorAttacked (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onWarriorDead (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onRecvPCAttributes (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onLockCore (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| virtual void | onUnlockCore (std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onCurrCamJustBecameWarriorPOVWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onBeginRoundWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onInitiativeRolledWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onAllInitiativesRolledWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onPreGetWarriorActionsWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onGetWarriorActionsWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onPostGetWarriorActionsWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onPostGetAllWarriorsActionsWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onPreWarriorPerformWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onPostWarriorPerformWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onPostWarriorPerformAllWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onWarriorAttackedWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onWarriorDeadWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onRecvPCAttributesWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onLockCoreWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| static void | onUnlockCoreWrapper (void *instance_, std::vector< OpenSkyNet::Utils::TaggedUnion > params_) |
| |
| bool App::handleActionDoneButton |
( |
const CEGUI::EventArgs & |
e | ) |
|
Critical section note: Can't hide action window here. PC may not have called waitForPerformEvent() yet, so setPerformEvent() would have no effect.
Critical section note: Can't hide action window here. PC may not have called waitForPerformEvent() yet, so setPerformEvent() would have no effect.
Critical section note: Can't hide action window here. PC may not have called waitForPerformEvent() yet, so setPerformEvent() would have no effect.
Critical section note: this section writes or reads GUI data from the core thread.
Critical section note: this section writes or reads GUI data from the core thread.
Critical section note: these bools are volatile, so do not need to be in a critical section.
Critical section note: _currWarriorGettingActions and its core-related members are only accessible from the core thread when they are not writable by the combat thread. This is enforced not by locks, but by the volatile bool _canAcceptPCActionsInput AND event _gotActionsEvent. Although onCurrCamJustBecameWarriorPOV accesses _currWarriorGettingActions, it does so after this combat event.