Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6439 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 8, 2006, 2:45:23 PM (19 years ago)
Author:
bensch
Message:

trunk: WeaponSystem working again:
reverted the changed from revision 6435, because they made the WeaponSystem unusable

Location:
trunk/src/world_entities
Files:
7 edited

Legend:

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

    r6435 r6439  
    115115  if (likely(this->left != NULL))
    116116  {
    117     this->left->tick(dt);
     117    this->left->tickW(dt);
    118118    this->left->requestAction(WA_SHOOT);
    119119  }
    120120  if (likely(this->right != NULL))
    121121  {
    122     this->right->tick(dt);
     122    this->right->tickW(dt);
    123123    this->right->requestAction(WA_SHOOT);
    124124  }
  • trunk/src/world_entities/weapons/aiming_turret.cc

    r6435 r6439  
    118118void AimingTurret::tick(float dt)
    119119{
    120   Weapon::tick(dt);
    121 
    122120  Quaternion quat;
    123121  Vector direction = this->target->getAbsCoor() - this->getAbsCoor();
  • trunk/src/world_entities/weapons/targeting_turret.cc

    r6435 r6439  
    119119void TargetingTurret::tick(float dt)
    120120{
    121   Weapon::tick(dt);
    122121
    123122  this->target->tick(dt);
  • trunk/src/world_entities/weapons/turret.cc

    r6438 r6439  
    114114void Turret::tick(float dt)
    115115{
    116   Weapon::tick(dt);
    117116  Quaternion quat;
    118117  Vector direction = this->getAbsCoor();/*this->getWeaponManager()->getFixedTarget()->getAbsCoor() - this->getAbsCoor();*/
  • trunk/src/world_entities/weapons/weapon.cc

    r6438 r6439  
    552552 * tick signal for time dependent/driven stuff
    553553*/
    554 void Weapon::tick(float dt)
     554void Weapon::tickW(float dt)
    555555{
    556556  //printf("%s ", stateToChar(this->currentState));
     
    575575    }
    576576  }
     577  tick(dt);
    577578}
    578579
  • trunk/src/world_entities/weapons/weapon.h

    r6438 r6439  
    153153
    154154    // FLOW
    155     void tick(float dt); //!< this is a function that must be called by the weaponManager, or any other weaponHandler, all other functions are handled from within
     155    void tickW(float dt); //!< this is a function that must be called by the weaponManager, or any other weaponHandler, all other functions are handled from within
     156
     157    virtual void tick(float dt) {};
    156158
    157159    bool check() const;
  • trunk/src/world_entities/weapons/weapon_manager.cc

    r6435 r6439  
    389389
    390390    if( tickWeapon != NULL && tickWeapon->isActive())
    391       tickWeapon->tick(dt);
     391      tickWeapon->tickW(dt);
    392392  }
    393393
Note: See TracChangeset for help on using the changeset viewer.