Changeset 5935 for code/branches/pickup/src/modules/pong/PongCenterpoint.cc
- Timestamp:
- Oct 13, 2009, 5:05:17 PM (16 years ago)
- Location:
- code/branches/pickup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup
- Property svn:mergeinfo changed
-
code/branches/pickup/src/modules/pong/PongCenterpoint.cc
r5781 r5935 44 44 this->height_ = 120; 45 45 this->ballspeed_ = 100; 46 this->ballaccfactor_ = 1.0; 46 47 this->batspeed_ = 60; 47 48 this->batlength_ = 0.25; … … 58 59 XMLPortParam(PongCenterpoint, "battemplate", setBattemplate, getBattemplate, xmlelement, mode); 59 60 XMLPortParam(PongCenterpoint, "ballspeed", setBallSpeed, getBallSpeed, xmlelement, mode); 61 XMLPortParam(PongCenterpoint, "ballaccfactor", setBallAccelerationFactor, getBallAccelerationFactor, xmlelement, mode); 60 62 XMLPortParam(PongCenterpoint, "batspeed", setBatSpeed, getBatSpeed, xmlelement, mode); 61 63 XMLPortParam(PongCenterpoint, "batlength", setBatLength, getBatLength, xmlelement, mode); … … 73 75 if (this->getGametype() && this->getGametype()->isA(Class(Pong))) 74 76 { 75 Pong* pong_gametype = orxonox_cast<Pong*>(this->getGametype() );77 Pong* pong_gametype = orxonox_cast<Pong*>(this->getGametype().get()); 76 78 pong_gametype->setCenterpoint(this); 77 79 }
Note: See TracChangeset
for help on using the changeset viewer.