Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/story_entities/campaign.h @ 6372

Last change on this file since 6372 was 6372, checked in by patrick, 18 years ago

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

File size: 970 bytes
Line 
1
2#ifndef _CAMPAIGN_H
3#define _CAMPAIGN_H
4
5#include "story_entity.h"
6
7#include <list>
8
9class World;
10class TiXmlElement;
11
12class Campaign : public StoryEntity
13{
14
15  public:
16    Campaign ();
17    Campaign ( TiXmlElement* root);
18    virtual ~Campaign ();
19
20    void loadParams(const TiXmlElement* root);
21    void loadWorldListParams(const TiXmlElement* root);
22
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();
29
30    void addEntity(StoryEntity* se, int storyID);
31    void addEntity(StoryEntity* se);
32    void removeEntity(int storyID);
33    void removeEntity(StoryEntity* se);
34
35    void nextLevel();
36    void previousLevel();
37
38
39  private:
40    StoryEntity* getStoryEntity(int storyID);
41
42
43  private:
44    StoryEntity* currentEntity;
45    std::list<StoryEntity*> entities;
46    bool running;
47
48};
49
50#endif /* _CAMPAIGN_H */
Note: See TracBrowser for help on using the repository browser.