Changeset 8190 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jun 7, 2006, 3:00:01 PM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r8037 r8190 136 136 AnimationPlayer::getInstance(); 137 137 PhysicsEngine::getInstance(); 138 138 CREngine::getInstance(); 139 139 } 140 140 … … 199 199 delete AnimationPlayer::getInstance(); 200 200 delete PhysicsEngine::getInstance(); 201 delete CREngine::getInstance(); 201 202 202 203 State::setCurrentStoryEntity(NULL); … … 278 279 /* process time */ 279 280 this->tick (); 280 /* process collision */ 281 this->collide (); 281 /* collision detection */ 282 this->collisionDetection (); 283 /* collision reaction */ 284 this->collisionReaction (); 282 285 /* update the state */ 283 286 this->update (); … … 408 411 * kicks the CDEngine to detect the collisions between the object groups in the world 409 412 */ 410 void GameWorld::colli de()413 void GameWorld::collisionDetection() 411 414 { 412 415 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00), … … 422 425 this->dataTank->objectManager->getObjectList(OM_COMMON)); 423 426 427 } 428 429 430 void GameWorld::collisionReaction() 431 { 432 CREngine::getInstance()->handleCollisions(); 424 433 } 425 434 -
trunk/src/story_entities/game_world.h
r7919 r8190 68 68 virtual void update(); 69 69 virtual void checkGameRules(); 70 virtual void collide(); 70 virtual void collisionDetection(); 71 virtual void collisionReaction(); 71 72 72 73 void drawEntityList(const ObjectManager::EntityList& drawList ) const;
Note: See TracChangeset
for help on using the changeset viewer.