Changeset 7221 in orxonox.OLD for trunk/src/story_entities/story_entity.h
- Timestamp:
- Mar 15, 2006, 3:10:45 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/story_entity.h
r6993 r7221 61 61 inline int getStoryID() { return this->storyID; } 62 62 63 void setLoadFile( const char*fileName);63 void setLoadFile(const std::string& fileName); 64 64 /** @returns the Filename this StoryEntity was loaded with */ 65 const char*getLoadFile() const { return this->loadFile; }65 const std::string& getLoadFile() const { return this->loadFile; } 66 66 67 67 void setNextStoryID(int nextStoryID); 68 68 /** gets the story id of the current entity @returns story id */ 69 69 inline int getNextStoryID() const { return this->nextStoryID; } 70 inline void setDescription(const char*description);70 inline void setDescription(const std::string& description); 71 71 /** @returns the description of this StoryEntity */ 72 inline const char*getDescription() { return this->description; }72 inline const std::string& getDescription() { return this->description; } 73 73 74 74 void grabWorldInfo(); … … 78 78 inline bool isContainedInMenu() { return this->bMenuEntry; } 79 79 /** sets the menu item image of this StoryEntity @param name name */ 80 inline void setMenuItemImage(const char*image);80 inline void setMenuItemImage(const std::string& image); 81 81 /** @returns the menu item image of this StoryEntity */ 82 inline const char*getMenuItemImage() { return this->menuItemImage; }83 inline void setMenuScreenshoot(const char*image);82 inline const std::string& getMenuItemImage() { return this->menuItemImage; } 83 inline void setMenuScreenshoot(const std::string& image); 84 84 /** @returns the menu screenshoot of this StoryEntity */ 85 inline const char*getMenuScreenshoot() { return this->menuScreenshoot; }85 inline const std::string& getMenuScreenshoot() { return this->menuScreenshoot; } 86 86 87 87 protected: 88 bool isInit; //!< if the entity is initialized, this has to be true.89 bool isRunning; //!< is true if the entity is running90 bool isPaused; //!< is true if the entity is paused88 bool isInit; //!< if the entity is initialized, this has to be true. 89 bool isRunning; //!< is true if the entity is running 90 bool isPaused; //!< is true if the entity is paused 91 91 92 92 93 93 private: 94 int storyID; //!< this is the number of this entity, identifying it in a list/tree...95 int nextStoryID; //!< if this entity has finished, this entity shall be called96 char*loadFile; //!< The file from which this world is loaded94 int storyID; //!< this is the number of this entity, identifying it in a list/tree... 95 int nextStoryID; //!< if this entity has finished, this entity shall be called 96 std::string loadFile; //!< The file from which this world is loaded 97 97 98 char*description; //!< the description of the StoryEntity99 char*menuItemImage; //!< the item image of the StoryEntity100 char*menuScreenshoot; //!< the screenshoot of the StoryEntity101 bool bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific98 std::string description; //!< the description of the StoryEntity 99 std::string menuItemImage; //!< the item image of the StoryEntity 100 std::string menuScreenshoot; //!< the screenshoot of the StoryEntity 101 bool bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific 102 102 }; 103 103
Note: See TracChangeset
for help on using the changeset viewer.