Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 8, 2006, 1:50:16 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: the turret now fires too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/ground_turret.cc

    r6432 r6433  
    9292    this->left->toList(this->getOMListNumber());
    9393    this->left->setRelCoor(0,10,-5);
     94    this->left->requestAction( WA_ACTIVATE);
    9495  }
    9596
     
    102103    this->right->toList(this->getOMListNumber());
    103104    this->right->setRelCoor(0,10,5);
     105    this->left->requestAction( WA_ACTIVATE);
    104106  }
    105107}
     
    109111 * @param time the Time to step
    110112 */
    111 void GroundTurret::tick(float time)
    112 {
     113void GroundTurret::tick(float dt)
     114{
     115  if (likely(this->left != NULL))
     116  {
     117    this->left->tickW(dt);
     118    this->left->requestAction(WA_SHOOT);
     119  }
     120  if (likely(this->right != NULL))
     121  {
     122    this->right->tickW(dt);
     123    this->right->requestAction(WA_SHOOT);
     124  }
    113125
    114126}
Note: See TracChangeset for help on using the changeset viewer.