Changeset 1484 for code/branches/network/src/orxonox/objects/SpaceShipAI.cc
- Timestamp:
- May 29, 2008, 1:01:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/SpaceShipAI.cc
r1480 r1484 68 68 for (int i = 4; i <= NUM_AI_TEAMS; ++i) 69 69 this->teamColours_[i] = ColourValue(rnd(), rnd(), rnd(), 1); 70 71 actionTimer_.setTimer(ACTION_INTERVAL, true, this, createExecutor(createFunctor(&SpaceShipAI::action))); 70 } 71 72 void SpaceShipAI::XMLPort(Element& xmlelement, XMLPort::Mode mode) 73 { 74 SpaceShip::XMLPort(xmlelement, mode); 75 myShip_=true; 76 77 this->actionTimer_.setTimer(ACTION_INTERVAL, true, this, createExecutor(createFunctor(&SpaceShipAI::action))); 72 78 } 73 79 … … 88 94 newenemy->setRotDamp(1.0); 89 95 Element xmlelement; 90 newenemy-> create();96 newenemy->XMLPort(xmlelement, XMLPort::LoadObject); 91 97 } 92 98 } … … 218 224 void SpaceShipAI::searchNewTargetPosition() 219 225 { 220 this->targetPosition_ += Vector3(rnd(-10000,10000), rnd(-10000,10000), rnd(-10000,10000));226 this->targetPosition_ = Vector3(rnd(-5000,5000), rnd(-5000,5000), rnd(-5000,5000)); 221 227 this->bHasTargetPosition_ = true; 222 228 }
Note: See TracChangeset
for help on using the changeset viewer.