Changeset 9869 in orxonox.OLD for trunk/src/story_entities/multi_player_world.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/multi_player_world.cc
r9656 r9869 36 36 SHELL_COMMAND(debug, MultiPlayerWorld, debug); 37 37 38 38 #include "class_id_DEPRECATED.h" 39 39 //! This creates a Factory to fabricate a MultiPlayerWorld 40 CREATE_FACTORY(MultiPlayerWorld, CL_MULTI_PLAYER_WORLD);41 40 ObjectListDefinitionID(MultiPlayerWorld, CL_MULTI_PLAYER_WORLD); 41 CREATE_FACTORY(MultiPlayerWorld); 42 42 43 43 MultiPlayerWorld::MultiPlayerWorld(const TiXmlElement* root) 44 44 : GameWorld() 45 45 { 46 this-> setClassID(CL_MULTI_PLAYER_WORLD, "MultiPlayerWorld");46 this->registerObject(this, MultiPlayerWorld::_objectList); 47 47 48 48 this->dataTank = new MultiPlayerWorldData(); … … 95 95 void MultiPlayerWorld::collisionDetection() 96 96 { 97 //CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_PLAYERS), this->dataTank->objectManager->getObjectList(OM_PLAYERS));97 //CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_PLAYERS), this->dataTank->objectManager->getEntityList(OM_PLAYERS)); 98 98 99 99 PRINTF(5)("\n-----------------------------------------\nchecking OM_PLAYERS vs OM_GROUP_01_PROJ\n\n"); 100 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_PLAYERS),101 this->dataTank->objectManager->get ObjectList(OM_GROUP_00_PROJ));100 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_PLAYERS), 101 this->dataTank->objectManager->getEntityList(OM_GROUP_00_PROJ)); 102 102 PRINTF(5)("\n-----------------------------------------\nchecking OM_PLAYERS vs OM_GROUP_01_PROJ\n\n"); 103 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_PLAYERS),104 this->dataTank->objectManager->get ObjectList(OM_GROUP_01_PROJ));103 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_PLAYERS), 104 this->dataTank->objectManager->getEntityList(OM_GROUP_01_PROJ)); 105 105 PRINTF(5)("\n-----------------------------------------\nchecking OM_PLAYERS vs OM_PLAYERS_PROJ\n\n"); 106 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_PLAYERS),107 this->dataTank->objectManager->get ObjectList(OM_PLAYERS_PROJ));106 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_PLAYERS), 107 this->dataTank->objectManager->getEntityList(OM_PLAYERS_PROJ)); 108 108 109 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_00),110 this->dataTank->objectManager->get ObjectList(OM_PLAYERS));111 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_01),112 this->dataTank->objectManager->get ObjectList(OM_PLAYERS));109 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_00), 110 this->dataTank->objectManager->getEntityList(OM_PLAYERS)); 111 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_01), 112 this->dataTank->objectManager->getEntityList(OM_PLAYERS)); 113 113 114 114 115 115 116 116 PRINTF(5)("\n-----------------------------------------\nchecking OM_GROUP_00 vs OM_GROUP_01_PROJ\n\n"); 117 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_00),118 this->dataTank->objectManager->get ObjectList(OM_GROUP_01_PROJ));117 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_00), 118 this->dataTank->objectManager->getEntityList(OM_GROUP_01_PROJ)); 119 119 PRINTF(5)("\n-----------------------------------------\nchecking OM_GROUP_00 vs OM_GROUP_01\n\n"); 120 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_00),121 this->dataTank->objectManager->get ObjectList(OM_GROUP_01));122 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_00),123 this->dataTank->objectManager->get ObjectList(OM_PLAYERS_PROJ));120 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_00), 121 this->dataTank->objectManager->getEntityList(OM_GROUP_01)); 122 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_00), 123 this->dataTank->objectManager->getEntityList(OM_PLAYERS_PROJ)); 124 124 125 125 PRINTF(5)("\n-----------------------------------------\nchecking OM_GROUP_01 vs OM_GROUP_00_PROJ\n\n"); 126 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_01),127 this->dataTank->objectManager->get ObjectList(OM_GROUP_00_PROJ));128 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_01),129 this->dataTank->objectManager->get ObjectList(OM_GROUP_00));130 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->get ObjectList(OM_GROUP_01),131 this->dataTank->objectManager->get ObjectList(OM_PLAYERS_PROJ));126 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_01), 127 this->dataTank->objectManager->getEntityList(OM_GROUP_00_PROJ)); 128 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_01), 129 this->dataTank->objectManager->getEntityList(OM_GROUP_00)); 130 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getEntityList(OM_GROUP_01), 131 this->dataTank->objectManager->getEntityList(OM_PLAYERS_PROJ)); 132 132 133 133 134 134 135 135 // ground collision detection: BSP Model 136 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->get ObjectList(OM_GROUP_00));137 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->get ObjectList(OM_GROUP_01));138 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->get ObjectList(OM_PLAYERS));136 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->getEntityList(OM_GROUP_00)); 137 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->getEntityList(OM_GROUP_01)); 138 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->getEntityList(OM_PLAYERS)); 139 139 } 140 140
Note: See TracChangeset
for help on using the changeset viewer.