- Timestamp:
- Jan 8, 2006, 2:08:24 AM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/ground_turret.cc
r6433 r6435 115 115 if (likely(this->left != NULL)) 116 116 { 117 this->left->tick W(dt);117 this->left->tick(dt); 118 118 this->left->requestAction(WA_SHOOT); 119 119 } 120 120 if (likely(this->right != NULL)) 121 121 { 122 this->right->tick W(dt);122 this->right->tick(dt); 123 123 this->right->requestAction(WA_SHOOT); 124 124 } -
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.