Changeset 3459 in orxonox.OLD for orxonox/trunk/src/campaign.cc
- Timestamp:
- Mar 9, 2005, 1:00:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/campaign.cc
r3231 r3459 39 39 } 40 40 41 /**42 \brief adds an game stroy entity to the campaign43 44 \param se: The entity45 \param storyID: The number that identifies the entity in the campaign. Each ID only used once in a Campaign46 47 An entity can be a world (playable), a cinematic, a shop, sounds, whatever you48 want to queue up in the campaign.49 */50 void Campaign::addEntity(StoryEntity* se, int storyID)51 {52 se->setStoryID(storyID);53 this->addEntity(se);54 }55 56 void Campaign::addEntity(StoryEntity* se)57 {58 this->entities->add(se);59 }60 61 62 void Campaign::removeEntity(int storyID)63 {64 this->removeEntity(this->getStoryEntity(storyID));65 66 }67 68 69 void Campaign::removeEntity(StoryEntity* se)70 {71 this->entities->remove(se);72 }73 74 41 75 42 ErrorMessage Campaign::start() … … 77 44 this->start(0); 78 45 } 46 79 47 80 48 ErrorMessage Campaign::start(int storyID = 0) … … 113 81 } 114 82 83 84 ErrorMessage Campaign::pause() 85 { 86 if(this->currentEntity != NULL) 87 this->isPaused = true; 88 } 89 90 91 ErrorMessage Campaign::resume() 92 { 93 if(this->currentEntity != NULL) 94 this->isPaused = false; 95 } 96 97 115 98 ErrorMessage Campaign::stop() 116 99 { … … 124 107 } 125 108 126 ErrorMessage Campaign::pause() 127 { 128 if(this->currentEntity != NULL) 129 this->isPaused = true; 130 } 131 132 133 ErrorMessage Campaign::resume() 134 { 135 if(this->currentEntity != NULL) 136 this->isPaused = false; 137 } 138 139 140 void Campaign::destroy() 109 110 ErrorMessage Campaign::destroy() 141 111 { 142 112 if(this->currentEntity != NULL) … … 147 117 } 148 118 } 119 120 121 /** 122 \brief adds an game stroy entity to the campaign 123 124 \param se: The entity 125 \param storyID: The number that identifies the entity in the campaign. Each ID only used once in a Campaign 126 127 An entity can be a world (playable), a cinematic, a shop, sounds, whatever you 128 want to queue up in the campaign. 129 */ 130 void Campaign::addEntity(StoryEntity* se, int storyID) 131 { 132 se->setStoryID(storyID); 133 this->addEntity(se); 134 } 135 136 void Campaign::addEntity(StoryEntity* se) 137 { 138 this->entities->add(se); 139 } 140 141 142 void Campaign::removeEntity(int storyID) 143 { 144 this->removeEntity(this->getStoryEntity(storyID)); 145 146 } 147 148 149 void Campaign::removeEntity(StoryEntity* se) 150 { 151 this->entities->remove(se); 152 } 153 149 154 150 155 /*
Note: See TracChangeset
for help on using the changeset viewer.