Changeset 6376 in orxonox.OLD for branches/network/src/story_entities
- Timestamp:
- Dec 31, 2005, 4:11:34 PM (19 years ago)
- Location:
- branches/network/src/story_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/campaign.cc
r6374 r6376 65 65 void Campaign::loadParams(const TiXmlElement* root) 66 66 { 67 static_cast<BaseObject*>(this)->loadParams(root); 68 69 LoadParam(root, "identifier", this, Campaign, setStoryID) 70 .describe("A Unique Identifier for this Campaign"); 67 static_cast<StoryEntity*>(this)->loadParams(root); 71 68 72 69 LoadParamXML(root, "WorldList", this, Campaign, loadWorldListParams) 73 70 .describe("A List of Worlds to be loaded in this Campaign"); 71 72 PRINTF(4)("Loaded Campaign specific stuff\n"); 74 73 } 75 74 -
branches/network/src/story_entities/game_world.cc
r6374 r6376 149 149 void GameWorld::loadParams(const TiXmlElement* root) 150 150 { 151 PRINTF(4)("Creating a GameWorld\n"); 152 153 LoadParam(root, "identifier", this, GameWorld, setStoryID) 154 .describe("Sets the StoryID of this world"); 155 156 LoadParam(root, "nextid", this, GameWorld, setNextStoryID) 157 .describe("Sets the ID of the next world"); 151 static_cast<StoryEntity*>(this)->loadParams(root); 158 152 159 153 LoadParam(root, "path", this, GameWorld, setPath) 160 154 .describe("The Filename of this GameWorld (relative from the data-dir)"); 155 156 PRINTF(4)("Loaded GameWorld specific stuff\n"); 161 157 } 162 158 -
branches/network/src/story_entities/single_player_world.cc
r6374 r6376 65 65 static_cast<GameWorld*>(this)->loadParams(root); 66 66 67 PRINTF(4)(" Creating a SinglePlayerWorld\n");67 PRINTF(4)("Loaded SinglePlayerWorld specific stuff\n"); 68 68 } 69 69 -
branches/network/src/story_entities/story_entity.cc
r6371 r6376 19 19 #include "story_entity.h" 20 20 21 #include "load_param.h" 21 22 22 23 using namespace std; … … 24 25 25 26 /** 26 * default constructor initializes all needed data27 * default constructor initializes all needed data 27 28 */ 28 29 StoryEntity::StoryEntity () 29 30 { 30 31 this->setClassID(CL_STORY_ENTITY, "StoryEntity"); 32 31 33 this->isInit = false; 32 34 this->readyToRun = false; 33 35 this->isPaused = false; 34 36 this->isSuspended = false; 37 38 this->storyID = -1; 39 this->nextStoryID = WORLD_ID_GAMEEND; 35 40 } 36 41 37 42 38 /** deconstructor 43 /** 44 * deconstructor 39 45 */ 40 StoryEntity::~StoryEntity () {} 46 StoryEntity::~StoryEntity () 47 {} 41 48 42 49 50 /** 51 * loads the Parameters of a Campaign 52 * @param root: The XML-element to load from 53 */ 54 void StoryEntity::loadParams(const TiXmlElement* root) 55 { 56 static_cast<BaseObject*>(this)->loadParams(root); 57 58 LoadParam(root, "identifier", this, StoryEntity, setStoryID) 59 .describe("A Unique Identifier for this StoryEntity"); 60 61 LoadParam(root, "nextid", this, StoryEntity, setNextStoryID) 62 .describe("Sets the ID of the next StoryEntity"); 63 64 PRINTF(4)("Loaded StoryEntity specific stuff\n"); 65 }
Note: See TracChangeset
for help on using the changeset viewer.