Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2005, 12:37:18 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/weaponSystem: some definitions of the Weapon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/weaponSystem/src/world_entities/weapons/test_gun.cc

    r4836 r4878  
    5050
    5151  this->model = (Model*)ResourceManager::getInstance()->load("models/test_gun.obj", OBJ, RP_CAMPAIGN);
    52   this->idleTime = 0.2f;
    5352  this->leftRight = leftRight;
    5453
     
    145144void TestGun::fire()
    146145{
    147   if( !this->hasWeaponIdleTimeElapsed())
     146  if( !this->stateTimeElapsed())
    148147    {
    149148      this->weaponIdle();
     
    158157  pj->setVelocity(this->getVelocity());
    159158  State::getWorldEntityList()->add(pj);
    160   this->localTime = 0;
    161159
    162160  this->animation1->replay();
     
    191189void TestGun::tick (float time)
    192190{
    193   this->localTime += time;
     191  this->stateTime += time;
    194192}
    195193
Note: See TracChangeset for help on using the changeset viewer.