- Timestamp:
- Mar 29, 2018, 3:30:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxyRoad_FS18/src/modules/orxyroad/OrxyRoadCenterPoint.cc
r11836 r11838 28 28 29 29 /** 30 @file DodgeRaceCenterPoint.cc31 @brief Implementation of the DodgeRaceCenterPoint class.30 @file OrxyRoadCenterPoint.cc 31 @brief Implementation of the OrxyRoadCenterPoint class. 32 32 */ 33 33 34 #include " DodgeRaceCenterPoint.h"34 #include "OrxyRoadCenterPoint.h" 35 35 36 36 #include "core/CoreIncludes.h" 37 37 38 #include " DodgeRace.h"38 #include "OrxyRoad.h" 39 39 40 40 namespace orxonox 41 41 { 42 RegisterClass( DodgeRaceCenterPoint);42 RegisterClass(OrxyRoadCenterPoint); 43 43 44 DodgeRaceCenterPoint::DodgeRaceCenterPoint(Context* context) : StaticEntity(context)44 OrxyRoadCenterPoint::OrxyRoadCenterPoint(Context* context) : StaticEntity(context) 45 45 { 46 RegisterObject( DodgeRaceCenterPoint);46 RegisterObject(OrxyRoadCenterPoint); 47 47 48 48 this->checkGametype(); 49 49 } 50 50 51 void DodgeRaceCenterPoint::checkGametype()51 void OrxyRoadCenterPoint::checkGametype() 52 52 { 53 if (this->getGametype() != nullptr && this->getGametype()->isA(Class( DodgeRace)))53 if (this->getGametype() != nullptr && this->getGametype()->isA(Class(OrxyRoad))) 54 54 { 55 DodgeRace* DodgeRaceGametype = orxonox_cast<DodgeRace*>(this->getGametype());56 DodgeRaceGametype->setCenterpoint(this);55 OrxyRoad* OrxyRoadGametype = orxonox_cast<OrxyRoad*>(this->getGametype()); 56 OrxyRoadGametype->setCenterpoint(this); 57 57 } 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.