Changeset 6493 in orxonox.OLD for branches/network/src/util
- Timestamp:
- Jan 11, 2006, 5:06:43 PM (19 years ago)
- Location:
- branches/network/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/util/state.cc
r6459 r6493 33 33 StoryEntity* State::storyEntity = NULL; 34 34 35 Player* State::player = NULL; 36 35 37 /** 36 38 * sets camera and target of the current Camera -
branches/network/src/util/state.h
r6459 r6493 11 11 class PNode; 12 12 class WorldEntity; 13 class Player; 13 14 class ObjectManager; 14 15 class StoryEntity; … … 49 50 static inline StoryEntity* getCurrentStoryEntity() { return State::storyEntity; }; 50 51 52 ////////////// 53 /// PLAYER /// 54 ////////////// 55 /** @param storyEntity sets the current StoryEntity that is been played */ 56 static inline void setPlayer(Player* player) { State::player = player; }; 57 /** @returns the current StoryEntity played */ 58 static inline Player* getPlayer() { return State::player; }; 51 59 52 60 ///////////////////////// … … 62 70 static ObjectManager* objectManager; //!< A reference to the current ObjectManager 63 71 static StoryEntity* storyEntity; //!< A reference to the current StoryEntity played 72 static Player* player; //!< A reference to the Player 64 73 65 74 };
Note: See TracChangeset
for help on using the changeset viewer.