Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2005, 2:41:02 PM (18 years ago)
Author:
patrick
Message:

network: more cleanup in the StoryEntity, thightening the interface and function renames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/campaign.h

    r6371 r6372  
    1010class TiXmlElement;
    1111
    12 class Campaign : public StoryEntity {
     12class Campaign : public StoryEntity
     13{
    1314
    14  public:
    15   Campaign ();
    16   Campaign ( TiXmlElement* root);
    17   virtual ~Campaign ();
     15  public:
     16    Campaign ();
     17    Campaign ( TiXmlElement* root);
     18    virtual ~Campaign ();
    1819
    19   void loadParams(const TiXmlElement* root);
    20   void loadWorldListParams(const TiXmlElement* root);
     20    void loadParams(const TiXmlElement* root);
     21    void loadWorldListParams(const TiXmlElement* root);
    2122
    22   StoryEntity* currentEntity;
     23    virtual ErrorMessage init();
     24    virtual ErrorMessage start();
     25    virtual ErrorMessage start(int storyID);
     26    virtual ErrorMessage pause();
     27    virtual ErrorMessage resume();
     28    virtual ErrorMessage stop();
    2329
    24   virtual ErrorMessage init();
    25   virtual ErrorMessage start();
    26   virtual ErrorMessage start(int storyID);
    27   virtual ErrorMessage pause();
    28   virtual ErrorMessage resume();
    29   virtual ErrorMessage stop();
     30    void addEntity(StoryEntity* se, int storyID);
     31    void addEntity(StoryEntity* se);
     32    void removeEntity(int storyID);
     33    void removeEntity(StoryEntity* se);
    3034
    31   void addEntity(StoryEntity* se, int storyID);
    32   void addEntity(StoryEntity* se);
    33   void removeEntity(int storyID);
    34   void removeEntity(StoryEntity* se);
     35    void nextLevel();
     36    void previousLevel();
    3537
    36   void nextLevel();
    37   void previousLevel();
    3838
    39  private:
    40   //ListTemplate<StoryEntity>* entities;
    41    std::list<StoryEntity*> entities;
    42    bool running;
     39  private:
     40    StoryEntity* getStoryEntity(int storyID);
    4341
    44    StoryEntity* getStoryEntity(int storyID);
     42
     43  private:
     44    StoryEntity* currentEntity;
     45    std::list<StoryEntity*> entities;
     46    bool running;
     47
    4548};
    4649
Note: See TracChangeset for help on using the changeset viewer.