Changeset 9168 in orxonox.OLD for branches/presentation/src/world_entities/creatures
- Timestamp:
- Jul 4, 2006, 8:27:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/presentation/src/world_entities/creatures/fps_player.cc ¶
r9166 r9168 145 145 this->getWeaponManager().getFixedTarget()->setRelCoor(1000,0,0); 146 146 147 this->aimingSystem = new AimingSystem( );147 this->aimingSystem = new AimingSystem(this); 148 148 this->addChild(this->aimingSystem); 149 this->aimingSystem->toList(OM_LIST(this->getOMListNumber() + 1)); 149 150 150 151 151 … … 242 242 this->getWeaponManager().setSlotPosition(0, Vector(1.5, box->halfLength[1] * f - 0.7, 1.1)); 243 243 this->getWeaponManager().setSlotPosition(1, Vector(5.0, box->halfLength[1] * f, 0.0)); 244 245 this->aimingSystem->toList(/*OM_LIST(this->getOMListNumber() + 1)*/ OM_GROUP_00); 244 246 } 245 247 } … … 266 268 } 267 269 } 270 271 WorldEntity* target = this->aimingSystem->getNearestTarget(); 272 if( target != NULL) 273 { 274 PRINTF(0)("hit hit hit, got: %s\n", target->getClassName()); 275 } 276 268 277 269 278
Note: See TracChangeset
for help on using the changeset viewer.