Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6837 in orxonox.OLD for trunk/src/story_entities/story_entity.h


Ignore:
Timestamp:
Jan 30, 2006, 12:28:03 AM (18 years ago)
Author:
patrick
Message:

trunk: more submenu structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/story_entity.h

    r6835 r6837  
    7171  /** @returns the name of this StoryEntity */
    7272  inline const char* getName() { return this->name; }
     73  /** sets the descroption of this StoryEntity @param name name */
     74  inline void setDescription(const char* description) { this->description = description; }
     75  /** @returns the description of this StoryEntity */
     76  inline const char* getDescription() { return this->description; }
    7377
    7478
    7579  protected:
    76     bool isInit;         //!< if the entity is initialized, this has to be true.
    77     bool isRunning;      //!< is true if the entity is running
    78     bool isPaused;       //!< is true if the entity is paused
     80    bool isInit;            //!< if the entity is initialized, this has to be true.
     81    bool isRunning;         //!< is true if the entity is running
     82    bool isPaused;          //!< is true if the entity is paused
    7983
    8084
    8185 private:
    82     int storyID;           //!< this is the number of this entity, identifying it in a list/tree...
    83     int nextStoryID;       //!< if this entity has finished, this entity shall be called
    84     const char* name;      //!< name of this StoryEntity
     86    int storyID;            //!< this is the number of this entity, identifying it in a list/tree...
     87    int nextStoryID;        //!< if this entity has finished, this entity shall be called
     88    const char* name;       //!< name of this StoryEntity
     89    const char* description;//!< the description of the StoryEntity
    8590};
    8691
Note: See TracChangeset for help on using the changeset viewer.