- Timestamp:
- Jan 8, 2006, 1:50:16 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r6424 r6433 330 330 this->tick(this->dataTank->objectManager->getObjectList(OM_COMMON), this->dtS); 331 331 this->tick(this->dataTank->objectManager->getObjectList(OM_GROUP_00), this->dtS); 332 this->tick(this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ), this->dtS); 332 333 this->tick(this->dataTank->objectManager->getObjectList(OM_GROUP_01), this->dtS); 333 334 this->tick(this->dataTank->objectManager->getObjectList(OM_GROUP_01_PROJ), this->dtS); … … 366 367 { 367 368 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00), 368 this->dataTank->objectManager->getObjectList(OM_GROUP_01_PROJ)); 369 this->dataTank->objectManager->getObjectList(OM_GROUP_01_PROJ)); 370 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01), 371 this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ)); 372 369 373 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01), 370 374 this->dataTank->objectManager->getObjectList(OM_COMMON)); … … 405 409 engine->draw(State::getObjectManager()->getObjectList(OM_COMMON)); 406 410 engine->draw(State::getObjectManager()->getObjectList(OM_GROUP_00)); 411 engine->draw(State::getObjectManager()->getObjectList(OM_GROUP_00_PROJ)); 407 412 engine->draw(State::getObjectManager()->getObjectList(OM_GROUP_01)); 408 413 engine->draw(State::getObjectManager()->getObjectList(OM_GROUP_01_PROJ)); -
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 } -
trunk/src/world_entities/weapons/guided_missile.cc
r6431 r6433 134 134 void GuidedMissile::collidesWith(WorldEntity* entity, const Vector& location) 135 135 { 136 if (this->hitEntity != entity && entity->isA(CL_NPC))136 if (this->hitEntity != entity) 137 137 this->destroy(); 138 138 this->hitEntity = entity; -
trunk/src/world_entities/weapons/rocket.cc
r6431 r6433 132 132 void Rocket::collidesWith(WorldEntity* entity, const Vector& location) 133 133 { 134 if (this->hitEntity != entity && entity->isA(CL_NPC))134 if (this->hitEntity != entity) 135 135 this->destroy(); 136 136 this->hitEntity = entity; -
trunk/src/world_entities/weapons/weapon.cc
r6431 r6433 373 373 // if (this->currentState == WS_INACTIVE) 374 374 { 375 375 // play Sound 376 376 if (likely(this->soundBuffers[WA_ACTIVATE] != NULL)) 377 377 this->soundSource->play(this->soundBuffers[WA_ACTIVATE]); … … 564 564 void Weapon::debug() const 565 565 { 566 PRINT( 3)("Weapon-Debug %s, state: %s, nextAction: %s\n", this->getName(), Weapon::stateToChar(this->currentState), Weapon::actionToChar(requestedAction));567 PRINT( 3)("Energy: max: %f; current: %f; loadedMax: %f; loadedCurrent: %f; chargeMin: %f, chargeMax %f\n",566 PRINT(0)("Weapon-Debug %s, state: %s (duration: %fs), nextAction: %s\n", this->getName(), Weapon::stateToChar(this->currentState), this->stateDuration, Weapon::actionToChar(requestedAction)); 567 PRINT(0)("Energy: max: %f; current: %f; loadedMax: %f; loadedCurrent: %f; chargeMin: %f, chargeMax %f\n", 568 568 this->energyMax, this->energy, this->energyLoadedMax, this->energyLoaded, this->minCharge, this->maxCharge); 569 569
Note: See TracChangeset
for help on using the changeset viewer.