Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 5:25:38 PM (15 years ago)
Author:
dsommer
Message:

funktioniert :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups2/src/orxonox/objects/pickup/Turbo.cc

    r2324 r2389  
    3939        bool Turbo::pickedUp(Pawn* player)
    4040        {
     41               
    4142                if(player-> isA(this->getPlayerBaseClass()))
    4243                        {
    4344                        SpaceShip* ship = dynamic_cast <SpaceShip*>(player);
     45                        COUT(3)<<"Speed:"<< ship->getMaxSpeed()<<std::endl;
    4446                        if(duration_==0 )
    4547                        {       if(addTo(player))
    46                                         {
     48                                        {       
     49                                                COUT(3)<<"ITEM EQUIPPED"<<std::endl;
    4750                                                this->setSpeedBoost(ship);
     51                                                COUT(3)<<"Speed:"<< ship->getMaxSpeed()<<std::endl;
    4852                                                return true;
    4953                                        }
     
    5256                        {
    5357                                this->setSpeedBoost(ship);
     58                                COUT(3)<<"Speed:"<< ship->getMaxSpeed()<<std::endl;
    5459                                return true;
    5560                        }
     
    6772        ship->setMaxRotation( ship->getMaxRotation()-this->rotacc_);
    6873        ship->setRotAcc( ship->getRotAcc()-this->rotacc_);
    69         COUT(3)<<"PickUp Timer expired"<<std::endl;
     74        COUT(3)<<"BOOST UNSET"<<std::endl;
    7075        }
    7176
     
    8893                if (this->duration_ == 0)
    8994                {
    90                         COUT(0) << "dropped" << std::endl;
     95                        COUT(0) << "ITEM DROPPED" << std::endl;
    9196                        if(remove(player)==true);
    9297                        {
Note: See TracChangeset for help on using the changeset viewer.