Changeset 6433 in orxonox.OLD for trunk/src/world_entities/npcs
- Timestamp:
- Jan 8, 2006, 1:50:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/ground_turret.cc
r6432 r6433 92 92 this->left->toList(this->getOMListNumber()); 93 93 this->left->setRelCoor(0,10,-5); 94 this->left->requestAction( WA_ACTIVATE); 94 95 } 95 96 … … 102 103 this->right->toList(this->getOMListNumber()); 103 104 this->right->setRelCoor(0,10,5); 105 this->left->requestAction( WA_ACTIVATE); 104 106 } 105 107 } … … 109 111 * @param time the Time to step 110 112 */ 111 void GroundTurret::tick(float time) 112 { 113 void 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 } 113 125 114 126 }
Note: See TracChangeset
for help on using the changeset viewer.