Changeset 2890 for code/trunk/src/orxonox/objects/gametypes/Pong.cc
- Timestamp:
- Apr 2, 2009, 8:42:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/gametypes/Pong.cc
r2885 r2890 53 53 this->bat_[0] = 0; 54 54 this->bat_[1] = 0; 55 56 this->setHUDTemplate("PongHUD"); 55 57 56 58 this->starttimer_.setTimer(1.0, false, this, createExecutor(createFunctor(&Pong::startBall))); … … 181 183 this->ball_->setSpeed(this->center_->getBallSpeed()); 182 184 } 185 186 PlayerInfo* Pong::getLeftPlayer() const 187 { 188 if (this->bat_ && this->bat_[0]) 189 return this->bat_[0]->getPlayer(); 190 else 191 return 0; 192 } 193 194 PlayerInfo* Pong::getRightPlayer() const 195 { 196 if (this->bat_ && this->bat_[1]) 197 return this->bat_[1]->getPlayer(); 198 else 199 return 0; 200 } 183 201 }
Note: See TracChangeset
for help on using the changeset viewer.