Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7039 in orxonox.OLD for trunk/src/util/state.h


Ignore:
Timestamp:
Feb 6, 2006, 12:47:01 AM (18 years ago)
Author:
patrick
Message:

trunk: game rules definitions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/state.h

    r7032 r7039  
    1717class StoryEntity;
    1818class ObjectManager;
     19class GameRules;
    1920
    2021
     
    6869  static inline StoryEntity* getCurrentStoryEntity() { return State::storyEntity; };
    6970
     71  /** @param gameRules sets the current GameRules */
     72  static inline void setGameRules(GameRules* gameRules) { State::gameRules = gameRules; }
     73  /** @returns the GameRules reference*/
     74  static inline GameRules* getGameRules() { return State::gameRules; }
     75
    7076  //////////////
    7177  /// PLAYER ///
     
    106112  static ObjectManager*         objectManager;      //!< A reference to the current ObjectManager
    107113  static StoryEntity*           storyEntity;        //!< A reference to the current StoryEntity played
     114  static GameRules*             gameRules;          //!< A reference to the GameRules
    108115  static Player*                player;             //!< A reference to the Player
    109116
Note: See TracChangeset for help on using the changeset viewer.