Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 2, 2006, 10:55:43 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: now the StoryEntity stores the path it was loaded with, not the GameWorld

File:
1 edited

Legend:

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

    r6853 r6992  
    6060  /** sets the story id of the current entity, this enables it to be identified in a  global context. @returns  the story id  */
    6161  inline int getStoryID() { return this->storyID; }
    62   /**  sets the id of the next story entity: StoryEntities can choose their following entity themselfs.
    63    * the entity id defined here  will be startet after this entity ends. this can be convenient if you
    64    * want to have a non linear story with switches.
    65    * @param nextStoryID the story id of the next StoryEntity   */
    66   inline void setNextStoryID(int nextStoryID) { this->nextStoryID = nextStoryID; }
     62
     63  void setLoadFile( const char* fileName);
     64  /** @returns the Filename this StoryEntity was loaded with */
     65  const char* getLoadFile() const { return this->loadFile; }
     66
     67  void setNextStoryID(int nextStoryID);
    6768  /**  gets the story id of the current entity @returns story id */
    68   inline int getNextStoryID() { return this->nextStoryID; }
     69  inline int getNextStoryID() const { return this->nextStoryID; }
    6970  inline void setDescription(const char* description);
    7071  /** @returns the description of this StoryEntity */
    7172  inline const char* getDescription() { return this->description; }
     73
     74
     75
    7276  /** toggle the menu visibility: SimpleMenu specific */
    7377  inline void addToGameMenu(int toggle) { this->bMenuEntry = (bool)toggle; }
     
    9094
    9195 private:
    92     int storyID;            //!< this is the number of this entity, identifying it in a list/tree...
    93     int nextStoryID;        //!< if this entity has finished, this entity shall be called
    94     char* description;      //!< the description of the StoryEntity
    95     char* menuItemImage;    //!< the item image of the StoryEntity
    96     char* menuScreenshoot;  //!< the screenshoot of the StoryEntity
    97     bool        bMenuEntry; //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific
     96    int     storyID;          //!< this is the number of this entity, identifying it in a list/tree...
     97    int     nextStoryID;      //!< if this entity has finished, this entity shall be called
     98    char*   loadFile;         //!< The file from which this world is loaded
     99
     100    char*   description;      //!< the description of the StoryEntity
     101    char*   menuItemImage;    //!< the item image of the StoryEntity
     102    char*   menuScreenshoot;  //!< the screenshoot of the StoryEntity
     103    bool    bMenuEntry;       //!< If true, this GameWorld apears in the SimpleMenu: SimpleMenu specific
    98104};
    99105
Note: See TracChangeset for help on using the changeset viewer.