Changeset 6459 in orxonox.OLD for branches/network/src/util
- Timestamp:
- Jan 10, 2006, 2:00:20 AM (19 years ago)
- Location:
- branches/network/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/util/state.cc
r6222 r6459 31 31 ObjectManager* State::objectManager = NULL; 32 32 33 StoryEntity* State::storyEntity = NULL; 34 33 35 /** 34 36 * sets camera and target of the current Camera -
branches/network/src/util/state.h
r6222 r6459 7 7 #define _STATE_H 8 8 9 9 10 // FORWARD DECLARATION 10 11 class PNode; 11 12 class WorldEntity; 12 13 class ObjectManager; 14 class StoryEntity; 13 15 14 16 //! handles states about orxonox's most importatn objects … … 39 41 static inline ObjectManager* getObjectManager() { return State::objectManager; }; 40 42 43 ////////////////////// 44 /// STORY-ENTITY /// 45 ////////////////////// 46 /** @param storyEntity sets the current StoryEntity that is been played */ 47 static inline void setCurrentStoryEntity(StoryEntity* storyEntity) { State::storyEntity = storyEntity; }; 48 /** @returns the current StoryEntity played */ 49 static inline StoryEntity* getCurrentStoryEntity() { return State::storyEntity; }; 50 51 41 52 ///////////////////////// 42 53 /// WORLD_ENTITY_LIST /// … … 49 60 static PNode* cameraTarget; //!< A reference to the cameraTarget 50 61 static PNode* nullParent; //!< A reference to the Null-PNode. 51 static ObjectManager* objectManager; //!< A referenct to the current ObjectManager 62 static ObjectManager* objectManager; //!< A reference to the current ObjectManager 63 static StoryEntity* storyEntity; //!< A reference to the current StoryEntity played 52 64 53 65 };
Note: See TracChangeset
for help on using the changeset viewer.