Changeset 9667 for code/trunk/src/modules/gametypes
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/modules/gametypes/OldRaceCheckPoint.cc
r9348 r9667 38 38 namespace orxonox 39 39 { 40 CreateFactory(OldRaceCheckPoint);40 RegisterClass(OldRaceCheckPoint); 41 41 42 OldRaceCheckPoint::OldRaceCheckPoint( BaseObject* creator): DistanceTrigger(creator), RadarViewable(creator, static_cast<WorldEntity*>(this))42 OldRaceCheckPoint::OldRaceCheckPoint(Context* context): DistanceTrigger(context), RadarViewable(this, static_cast<WorldEntity*>(this)) 43 43 { 44 44 RegisterObject(OldRaceCheckPoint); -
code/trunk/src/modules/gametypes/OldRaceCheckPoint.h
r9348 r9667 45 45 { 46 46 public: 47 OldRaceCheckPoint( BaseObject* creator);47 OldRaceCheckPoint(Context* context); 48 48 virtual ~OldRaceCheckPoint(); 49 49 -
code/trunk/src/modules/gametypes/OldSpaceRace.cc
r9348 r9667 36 36 namespace orxonox 37 37 { 38 CreateUnloadableFactory(OldSpaceRace);38 RegisterUnloadableClass(OldSpaceRace); 39 39 40 OldSpaceRace::OldSpaceRace( BaseObject* creator) : Gametype(creator)40 OldSpaceRace::OldSpaceRace(Context* context) : Gametype(context) 41 41 { 42 42 RegisterObject(OldSpaceRace); -
code/trunk/src/modules/gametypes/OldSpaceRace.h
r9348 r9667 52 52 53 53 public: 54 OldSpaceRace( BaseObject* creator);54 OldSpaceRace(Context* context); 55 55 virtual ~OldSpaceRace() {} 56 56 -
code/trunk/src/modules/gametypes/RaceCheckPoint.cc
r9526 r9667 41 41 namespace orxonox 42 42 { 43 CreateFactory(RaceCheckPoint);44 45 RaceCheckPoint::RaceCheckPoint( BaseObject* creator) : DistanceMultiTrigger(creator),46 RadarViewable( creator, static_cast<WorldEntity*> (this))43 RegisterClass(RaceCheckPoint); 44 45 RaceCheckPoint::RaceCheckPoint(Context* context) : DistanceMultiTrigger(context), 46 RadarViewable(this, static_cast<WorldEntity*> (this)) 47 47 { 48 48 RegisterObject(RaceCheckPoint); … … 157 157 if (players_.size() > 0) 158 158 { 159 for ( int i = 0; i < players_.size(); i++)159 for (size_t i = 0; i < players_.size(); i++) 160 160 { 161 161 if (this->players_[i]->getClientID() == clientID) … … 172 172 if (players_.size() > 0) 173 173 { 174 for ( int i = 0; i < players_.size(); i++)174 for (size_t i = 0; i < players_.size(); i++) 175 175 { 176 176 if (this->players_[i] == player) -
code/trunk/src/modules/gametypes/RaceCheckPoint.h
r9526 r9667 45 45 { 46 46 public: 47 RaceCheckPoint( BaseObject* creator);47 RaceCheckPoint(Context* context); 48 48 virtual ~RaceCheckPoint(); 49 49 … … 70 70 } 71 71 72 const std::set<int>&getNextCheckpoints()72 std::set<int> getNextCheckpoints() 73 73 { 74 74 return nextCheckpoints_; -
code/trunk/src/modules/gametypes/SpaceRace.cc
r9526 r9667 40 40 namespace orxonox 41 41 { 42 CreateUnloadableFactory(SpaceRace);42 RegisterUnloadableClass(SpaceRace); 43 43 44 SpaceRace::SpaceRace( BaseObject* creator) : Gametype(creator)44 SpaceRace::SpaceRace(Context* context) : Gametype(context) 45 45 { 46 46 RegisterObject(SpaceRace); -
code/trunk/src/modules/gametypes/SpaceRace.h
r9263 r9667 54 54 55 55 public: 56 SpaceRace( BaseObject* creator);56 SpaceRace(Context* context); 57 57 virtual ~SpaceRace() {} 58 58 -
code/trunk/src/modules/gametypes/SpaceRaceBot.cc
r9526 r9667 29 29 namespace orxonox 30 30 { 31 CreateFactory(SpaceRaceBot);31 RegisterClass(SpaceRaceBot); 32 32 33 SpaceRaceBot::SpaceRaceBot( BaseObject* creator) : Bot(creator){33 SpaceRaceBot::SpaceRaceBot(Context* context) : Bot(context){ 34 34 RegisterObject(SpaceRaceBot); 35 35 this->defaultController_ = Class(SpaceRaceController);// ClassByString("") -
code/trunk/src/modules/gametypes/SpaceRaceBot.h
r9526 r9667 41 41 { 42 42 public: 43 SpaceRaceBot( BaseObject* creator);43 SpaceRaceBot(Context* context); 44 44 virtual ~SpaceRaceBot() {} 45 45 }; -
code/trunk/src/modules/gametypes/SpaceRaceController.cc
r9526 r9667 45 45 namespace orxonox 46 46 { 47 CreateFactory(SpaceRaceController);47 RegisterClass(SpaceRaceController); 48 48 49 49 const int ADJUSTDISTANCE = 500; … … 52 52 * Idea: Find static Point (checkpoints the spaceship has to reach) 53 53 */ 54 SpaceRaceController::SpaceRaceController( BaseObject* creator) :55 ArtificialController(c reator)54 SpaceRaceController::SpaceRaceController(Context* context) : 55 ArtificialController(context) 56 56 { 57 57 RegisterObject(SpaceRaceController) … … 86 86 87 87 }//ausgabe*/ 88 88 /* 89 89 for (std::vector<RaceCheckPoint*>::iterator it = checkpoints.begin(); it != checkpoints.end(); ++it) 90 90 { … … 100 100 } 101 101 } 102 }/* 102 } 103 */ 104 /* 103 105 for(std::vector<RaceCheckPoint*>::iterator it=checkpoints_.begin(); it!=checkpoints_.end(); it++) 104 106 { … … 301 303 { 302 304 for (size_t i = 0; i < this->checkpoints_.size(); ++i) 303 if (this->checkpoints_[i]->getCheckpointIndex() == index)304 return this->checkpoints_[i];305 if (this->checkpoints_[i]->getCheckpointIndex() == index) 306 return this->checkpoints_[i]; 305 307 return NULL; 306 308 } … … 340 342 //orxout()<<"temp nach ausgabe: "<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().x<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().y<<previousCheckpoint->getVirtualNextCheckpointsAsVector3().z<<endl; 341 343 //OrxAssert(virtualCheckPointIndex < -1, "TO much virtual cp"); 342 /*orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<", following:"<<indexFollowingCheckPoint<<" : "<<temp.x<<", "<<temp.y<<", "<<temp.z<<"; ";344 orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<", following:"<<indexFollowingCheckPoint<<" : "<<temp.x<<", "<<temp.y<<", "<<temp.z<<"; "; 343 345 temp=previousCheckpoint->getNextCheckpointsAsVector3(); 344 346 orxout()<<"id: "<< previousCheckpoint->getCheckpointIndex() <<": "<<temp.x<<", "<<temp.y<<", "<<temp.z<<"; "; 345 orxout()<<endl; *//*347 orxout()<<endl; 346 348 return newTempRaceCheckPoint; 347 349 }*/ -
code/trunk/src/modules/gametypes/SpaceRaceController.h
r9526 r9667 65 65 66 66 public: 67 SpaceRaceController( BaseObject* creator);67 SpaceRaceController(Context* context); 68 68 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 69 69 virtual ~SpaceRaceController(); -
code/trunk/src/modules/gametypes/SpaceRaceManager.cc
r9526 r9667 40 40 namespace orxonox 41 41 { 42 CreateFactory(SpaceRaceManager);42 RegisterClass(SpaceRaceManager); 43 43 44 SpaceRaceManager::SpaceRaceManager( BaseObject* creator) :45 BaseObject(c reator)44 SpaceRaceManager::SpaceRaceManager(Context* context) : 45 BaseObject(context) 46 46 { 47 47 RegisterObject(SpaceRaceManager); -
code/trunk/src/modules/gametypes/SpaceRaceManager.h
r9526 r9667 55 55 56 56 public: 57 SpaceRaceManager( BaseObject* creator);57 SpaceRaceManager(Context* context); 58 58 virtual ~SpaceRaceManager() ; 59 59
Note: See TracChangeset
for help on using the changeset viewer.