Changeset 6439 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 8, 2006, 2:45:23 PM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aiming_turret.cc
r6435 r6439 118 118 void AimingTurret::tick(float dt) 119 119 { 120 Weapon::tick(dt);121 122 120 Quaternion quat; 123 121 Vector direction = this->target->getAbsCoor() - this->getAbsCoor(); -
trunk/src/world_entities/weapons/targeting_turret.cc
r6435 r6439 119 119 void TargetingTurret::tick(float dt) 120 120 { 121 Weapon::tick(dt);122 121 123 122 this->target->tick(dt); -
trunk/src/world_entities/weapons/turret.cc
r6438 r6439 114 114 void Turret::tick(float dt) 115 115 { 116 Weapon::tick(dt);117 116 Quaternion quat; 118 117 Vector direction = this->getAbsCoor();/*this->getWeaponManager()->getFixedTarget()->getAbsCoor() - this->getAbsCoor();*/ -
trunk/src/world_entities/weapons/weapon.cc
r6438 r6439 552 552 * tick signal for time dependent/driven stuff 553 553 */ 554 void Weapon::tick (float dt)554 void Weapon::tickW(float dt) 555 555 { 556 556 //printf("%s ", stateToChar(this->currentState)); … … 575 575 } 576 576 } 577 tick(dt); 577 578 } 578 579 -
trunk/src/world_entities/weapons/weapon.h
r6438 r6439 153 153 154 154 // 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) {}; 156 158 157 159 bool check() const; -
trunk/src/world_entities/weapons/weapon_manager.cc
r6435 r6439 389 389 390 390 if( tickWeapon != NULL && tickWeapon->isActive()) 391 tickWeapon->tick (dt);391 tickWeapon->tickW(dt); 392 392 } 393 393
Note: See TracChangeset
for help on using the changeset viewer.