- Timestamp:
- Dec 10, 2008, 5:25:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/Turbo.cc
r2324 r2389 39 39 bool Turbo::pickedUp(Pawn* player) 40 40 { 41 41 42 if(player-> isA(this->getPlayerBaseClass())) 42 43 { 43 44 SpaceShip* ship = dynamic_cast <SpaceShip*>(player); 45 COUT(3)<<"Speed:"<< ship->getMaxSpeed()<<std::endl; 44 46 if(duration_==0 ) 45 47 { if(addTo(player)) 46 { 48 { 49 COUT(3)<<"ITEM EQUIPPED"<<std::endl; 47 50 this->setSpeedBoost(ship); 51 COUT(3)<<"Speed:"<< ship->getMaxSpeed()<<std::endl; 48 52 return true; 49 53 } … … 52 56 { 53 57 this->setSpeedBoost(ship); 58 COUT(3)<<"Speed:"<< ship->getMaxSpeed()<<std::endl; 54 59 return true; 55 60 } … … 67 72 ship->setMaxRotation( ship->getMaxRotation()-this->rotacc_); 68 73 ship->setRotAcc( ship->getRotAcc()-this->rotacc_); 69 COUT(3)<<" PickUp Timer expired"<<std::endl;74 COUT(3)<<"BOOST UNSET"<<std::endl; 70 75 } 71 76 … … 88 93 if (this->duration_ == 0) 89 94 { 90 COUT(0) << " dropped" << std::endl;95 COUT(0) << "ITEM DROPPED" << std::endl; 91 96 if(remove(player)==true); 92 97 {
Note: See TracChangeset
for help on using the changeset viewer.