Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2010, 10:25:27 AM (15 years ago)
Author:
scheusso
Message:

merged rocket branch into presentation3 and cleaned up some things (mostly debug output and intendation)

Location:
code/branches/presentation3
Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3

  • code/branches/presentation3/src/modules/weapons/projectiles/CMakeLists.txt

    r6417 r6951  
    55  LightningGunProjectile.cc
    66  Rocket.cc
     7  SimpleRocket.cc
    78)
  • code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.cc

    r6950 r6951  
    5959        this->bDestroy_ = false;
    6060        this->lifetime_ = 100;
    61                 COUT(0)<< "simplerocket constructed\n";
     61        COUT(4) << "simplerocket constructed\n";
    6262
    6363
     
    9191
    9292    }
    93         void SimpleRocket::tick(float dt)
     93   
     94    void SimpleRocket::tick(float dt)
    9495    {
    9596        SUPER(SimpleRocket, tick, dt);
     
    102103                this->destroy();
    103104       
    104         }
     105    }
    105106
    106107    /**s
     
    110111    SimpleRocket::~SimpleRocket()
    111112    {
    112                 if (this->isInitialized()) {
    113                         this->getController()->destroy();
    114                 COUT(0)<< "simplerocket destroyed\n";
    115                 }
    116         }
     113        if (this->isInitialized())
     114        {
     115            this->getController()->destroy();
     116            COUT(4)<< "simplerocket destroyed\n";
     117        }
     118    }
    117119
    118120    /**
     
    165167
    166168            float dmg = this->damage_;
    167             if (this->owner_)
    168                 dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false);
     169//             if (this->owner_)
     170//                 dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false);
    169171
    170172            Pawn* victim = orxonox_cast<Pawn*>(otherObject);
     
    182184        }
    183185    }
    184         void SimpleRocket::setDestroy() {
    185                 this->bDestroy_=true;
    186                 COUT(0)<<"trying to destroy";
    187         }
     186   
     187    void SimpleRocket::setDestroy()
     188    {
     189        this->bDestroy_=true;
     190        CCOUT(4)<<"trying to destroy";
     191    }
    188192
    189193    void SimpleRocket::fired(unsigned int firemode)
Note: See TracChangeset for help on using the changeset viewer.