- Timestamp:
- Dec 19, 2004, 11:04:22 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/campaign.cc
r3221 r3222 34 34 35 35 36 Error Campaign::init()36 ErrorMessage Campaign::init() 37 37 { 38 38 this->isInit = true; … … 73 73 74 74 75 Error Campaign::start()75 ErrorMessage Campaign::start() 76 76 { 77 77 this->start(0); 78 78 } 79 79 80 Error Campaign::start(int storyID = 0)80 ErrorMessage Campaign::start(int storyID = 0) 81 81 { 82 82 printf("World::start() - starting new StoryEntity Nr:%i\n", storyID); 83 Error errorCode;83 ErrorMessage errorCode; 84 84 if( !this->isInit) return errorCode; 85 85 if( storyID == WORLD_ID_GAMEEND) return errorCode; … … 113 113 } 114 114 115 Error Campaign::stop()115 ErrorMessage Campaign::stop() 116 116 { 117 117 this->running = false; … … 124 124 } 125 125 126 Error Campaign::pause()126 ErrorMessage Campaign::pause() 127 127 { 128 128 if(this->currentEntity != NULL) … … 131 131 132 132 133 Error Campaign::resume()133 ErrorMessage Campaign::resume() 134 134 { 135 135 if(this->currentEntity != NULL) -
orxonox/trunk/src/campaign.h
r3220 r3222 17 17 StoryEntity* currentEntity; 18 18 19 virtual Error init();20 virtual Error start();21 virtual Error start(int storyID);22 virtual Error stop();23 virtual Error pause();24 virtual Error resume();19 virtual ErrorMessage init(); 20 virtual ErrorMessage start(); 21 virtual ErrorMessage start(int storyID); 22 virtual ErrorMessage stop(); 23 virtual ErrorMessage pause(); 24 virtual ErrorMessage resume(); 25 25 26 26 virtual void destroy(); -
orxonox/trunk/src/error.h
r2644 r3222 54 54 char* message; 55 55 char* location; 56 } Error ;56 } ErrorMessage; -
orxonox/trunk/src/game_loader.cc
r3220 r3222 50 50 51 51 52 Error GameLoader::init()52 ErrorMessage GameLoader::init() 53 53 { 54 54 if(this->currentCampaign != NULL) … … 57 57 58 58 59 Error GameLoader::loadCampaign(char* name)59 ErrorMessage GameLoader::loadCampaign(char* name) 60 60 { 61 Error errorCode;61 ErrorMessage errorCode; 62 62 63 63 this->currentCampaign = this->fileToCampaign(name); 64 64 } 65 65 66 Error GameLoader::loadDebugCampaign(Uint32 campaignID)66 ErrorMessage GameLoader::loadDebugCampaign(Uint32 campaignID) 67 67 { 68 68 switch(campaignID) … … 87 87 } 88 88 89 Error GameLoader::start()89 ErrorMessage GameLoader::start() 90 90 { 91 91 if(this->currentCampaign != NULL) … … 94 94 95 95 96 Error GameLoader::stop()96 ErrorMessage GameLoader::stop() 97 97 { 98 98 if(this->currentCampaign != NULL) … … 102 102 103 103 104 Error GameLoader::pause()104 ErrorMessage GameLoader::pause() 105 105 { 106 106 this->isPaused = true; … … 110 110 111 111 112 Error GameLoader::resume()112 ErrorMessage GameLoader::resume() 113 113 { 114 114 this->isPaused = false; … … 117 117 } 118 118 119 Error GameLoader::free()119 ErrorMessage GameLoader::free() 120 120 {} 121 121 -
orxonox/trunk/src/game_loader.h
r2636 r3222 20 20 static GameLoader* getInstance(); 21 21 22 Error init();23 Error loadCampaign(char* name);24 Error start();25 Error stop();26 Error pause();27 Error resume();28 Error free();22 ErrorMessage init(); 23 ErrorMessage loadCampaign(char* name); 24 ErrorMessage start(); 25 ErrorMessage stop(); 26 ErrorMessage pause(); 27 ErrorMessage resume(); 28 ErrorMessage free(); 29 29 30 30 void nextLevel(); … … 32 32 33 33 bool worldCommand(Command* cmd); 34 Error loadDebugCampaign(Uint32 campaignID);34 ErrorMessage loadDebugCampaign(Uint32 campaignID); 35 35 36 36 private: -
orxonox/trunk/src/story_entity.cc
r3221 r3222 35 35 this shifts the initialisation work before the execution - very important... 36 36 */ 37 Error StoryEntity::init()37 ErrorMessage StoryEntity::init() 38 38 {} 39 39 … … 93 93 storyID. 94 94 */ 95 Error StoryEntity::start(int storyID)95 ErrorMessage StoryEntity::start(int storyID) 96 96 {} 97 97 … … 101 101 \returns error code if this action has caused a error 102 102 */ 103 Error StoryEntity::start()103 ErrorMessage StoryEntity::start() 104 104 {} 105 105 … … 115 115 hehehe, all seen... :) 116 116 */ 117 Error StoryEntity::stop()117 ErrorMessage StoryEntity::stop() 118 118 {} 119 119 … … 125 125 this pauses the current entity or passes this call forth to the running entity. 126 126 */ 127 Error StoryEntity::pause()127 ErrorMessage StoryEntity::pause() 128 128 {} 129 129 … … 135 135 this resumess the current entity or passes this call forth to the running entity. 136 136 */ 137 Error StoryEntity::resume()137 ErrorMessage StoryEntity::resume() 138 138 {} 139 139 -
orxonox/trunk/src/story_entity.h
r3221 r3222 21 21 bool isPaused; //! is true if the entity is paused 22 22 23 virtual Error init();24 virtual Error start(int storyID);25 virtual Error start();26 virtual Error stop();27 virtual Error pause();28 virtual Error resume();23 virtual ErrorMessage init(); 24 virtual ErrorMessage start(int storyID); 25 virtual ErrorMessage start(); 26 virtual ErrorMessage stop(); 27 virtual ErrorMessage pause(); 28 virtual ErrorMessage resume(); 29 29 30 30 virtual void load(); -
orxonox/trunk/src/world.cc
r3221 r3222 75 75 \brief initialize the world before use. 76 76 */ 77 Error World::init()77 ErrorMessage World::init() 78 78 { 79 79 this->bPause = false; … … 83 83 } 84 84 85 Error World::start()85 ErrorMessage World::start() 86 86 { 87 87 printf("World::start() - starting current World: nr %i\n", this->debugWorldNr); … … 91 91 } 92 92 93 Error World::stop()93 ErrorMessage World::stop() 94 94 { 95 95 printf("World::stop() - got stop signal\n"); … … 97 97 } 98 98 99 Error World::pause()99 ErrorMessage World::pause() 100 100 { 101 101 this->isPaused = true; 102 102 } 103 103 104 Error World::resume()104 ErrorMessage World::resume() 105 105 { 106 106 this->isPaused = false; -
orxonox/trunk/src/world.h
r3221 r3222 29 29 T* spawn(Placement* plc, WorldEntity* owner); 30 30 31 virtual Error init();32 virtual Error start();33 virtual Error stop();34 virtual Error pause();35 virtual Error resume();31 virtual ErrorMessage init(); 32 virtual ErrorMessage start(); 33 virtual ErrorMessage stop(); 34 virtual ErrorMessage pause(); 35 virtual ErrorMessage resume(); 36 36 37 37 virtual void load();
Note: See TracChangeset
for help on using the changeset viewer.