Changeset 927 for code/branches/network/src/orxonox/objects/SpaceShip.cc
- Timestamp:
- Mar 26, 2008, 5:02:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/SpaceShip.cc
r919 r927 56 56 { 57 57 RegisterObject(SpaceShip); 58 this->registerAllVariables(); 58 59 59 60 this->setConfigValues(); … … 125 126 this->brakeLoop(loop); 126 127 */ 127 this->init(); 128 128 // this->create(); 129 130 129 131 COUT(3) << "Info: SpaceShip was loaded" << std::endl; 130 132 } … … 136 138 } 137 139 140 bool SpaceShip::create(){ 141 if(Model::create()) 142 this->init(); 143 else 144 return false; 145 return true; 146 } 147 148 void SpaceShip::registerAllVariables(){ 149 Model::registerAllVariables(); 150 151 152 153 } 154 138 155 void SpaceShip::init() 139 156 { … … 203 220 { 204 221 Model::loadParams(xmlElem); 222 this->create(); 205 223 /* 206 224 if (xmlElem->Attribute("forward") && xmlElem->Attribute("rotateupdown") && xmlElem->Attribute("rotaterightleft") && xmlElem->Attribute("looprightleft"))
Note: See TracChangeset
for help on using the changeset viewer.