Changeset 7039 in orxonox.OLD for trunk/src/util/state.h
- Timestamp:
- Feb 6, 2006, 12:47:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/state.h
r7032 r7039 17 17 class StoryEntity; 18 18 class ObjectManager; 19 class GameRules; 19 20 20 21 … … 68 69 static inline StoryEntity* getCurrentStoryEntity() { return State::storyEntity; }; 69 70 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 70 76 ////////////// 71 77 /// PLAYER /// … … 106 112 static ObjectManager* objectManager; //!< A reference to the current ObjectManager 107 113 static StoryEntity* storyEntity; //!< A reference to the current StoryEntity played 114 static GameRules* gameRules; //!< A reference to the GameRules 108 115 static Player* player; //!< A reference to the Player 109 116
Note: See TracChangeset
for help on using the changeset viewer.