Changeset 6435 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 8, 2006, 2:08:24 AM (19 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/aiming_turret.cc
r6434 r6435 118 118 void AimingTurret::tick(float dt) 119 119 { 120 Weapon::tick(dt); 121 120 122 Quaternion quat; 121 123 Vector direction = this->target->getAbsCoor() - this->getAbsCoor(); -
trunk/src/world_entities/weapons/targeting_turret.cc
r6434 r6435 119 119 void TargetingTurret::tick(float dt) 120 120 { 121 Weapon::tick(dt); 121 122 122 123 this->target->tick(dt); -
trunk/src/world_entities/weapons/turret.cc
r6434 r6435 128 128 void Turret::tick(float dt) 129 129 { 130 Weapon::tick(dt); 130 131 Quaternion quat; 131 132 Vector direction = this->getAbsCoor();/*this->getWeaponManager()->getFixedTarget()->getAbsCoor() - this->getAbsCoor();*/ -
trunk/src/world_entities/weapons/weapon.cc
r6434 r6435 507 507 * tick signal for time dependent/driven stuff 508 508 */ 509 void Weapon::tick W(float dt)509 void Weapon::tick(float dt) 510 510 { 511 511 //printf("%s ", stateToChar(this->currentState)); … … 530 530 } 531 531 } 532 tick(dt);533 532 } 534 533 -
trunk/src/world_entities/weapons/weapon.h
r6306 r6435 149 149 150 150 // FLOW 151 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 152 153 virtual void tick(float dt) {}; 151 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 154 152 155 153 bool check() const; -
trunk/src/world_entities/weapons/weapon_manager.cc
r6142 r6435 389 389 390 390 if( tickWeapon != NULL && tickWeapon->isActive()) 391 tickWeapon->tick W(dt);391 tickWeapon->tick(dt); 392 392 } 393 393
Note: See TracChangeset
for help on using the changeset viewer.