Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 17, 2005, 6:52:57 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some work in the loading process of worlds

File:
1 edited

Legend:

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

    r5039 r6152  
    1919  virtual ~StoryEntity ();
    2020
    21   bool isInit;  //! if the entity is initialized, this has to be true
    22   bool isPaused; //! is true if the entity is paused
    2321
    24   virtual ErrorMessage preLoad();
    25   virtual ErrorMessage load();
    26   virtual ErrorMessage init();
    27   virtual ErrorMessage start(int storyID);
    28   virtual ErrorMessage start();
    29   virtual ErrorMessage pause();
    30   virtual ErrorMessage resume();
    31   virtual ErrorMessage stop();
    32   virtual ErrorMessage destroy();
     22  // INIT AND LOAD //
     23  virtual ErrorMessage preLoad() {};
     24  virtual ErrorMessage load() {};
     25  virtual ErrorMessage postLoad() {};
     26  virtual ErrorMessage check() {};
    3327
    34 
    35   virtual void displayLoadScreen();
    36   virtual void releaseLoadScreen();
     28  // RUNNING //
     29  virtual ErrorMessage preStart() {};
     30  virtual ErrorMessage start() = 0;
     31  virtual ErrorMessage pause() = 0;
     32  virtual ErrorMessage rewind() {};
     33  virtual ErrorMessage suspend() {};
     34  virtual ErrorMessage resume() = 0;
     35  virtual ErrorMessage stop() = 0;
     36  virtual ErrorMessage destroy() {};
    3737
    3838  void setStoryID(int storyID);
     
    4242  int getNextStoryID();
    4343
     44  protected:
     45    bool isInit;         //!< if the entity is initialized, this has to be true.
     46    bool readyToRun;     //!< If the entity is ready to run -> post-check.
     47    bool isPaused;       //!< is true if the entity is paused
     48    bool isSuspended;    //!< if the Entity is suspended.
    4449
    4550 private:
    46   int storyID; //! this is the number of this entity, identifying it in a list/tree...
    47   int nextStoryID; //! if this entity has finished, this entity shall be called
     51  int storyID;           //!< this is the number of this entity, identifying it in a list/tree...
     52  int nextStoryID;       //!< if this entity has finished, this entity shall be called
    4853};
    4954
Note: See TracChangeset for help on using the changeset viewer.