Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8036 in orxonox.OLD for branches/network/src/story_entities


Ignore:
Timestamp:
May 31, 2006, 4:33:31 PM (19 years ago)
Author:
patrick
Message:

cr: network spawning points implemented and new group introduced

Location:
branches/network/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/multi_player_world.cc

    r7954 r8036  
    8686
    8787/**
     88 * kicks the CDEngine to detect the collisions between the object groups in the world
     89 */
     90void MultiPlayerWorld::collide()
     91{
     92  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_PLAYERS),
     93    this->dataTank->objectManager->getObjectList(OM_PLAYERS));
     94  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_PLAYERS),
     95    this->dataTank->objectManager->getObjectList(OM_PLAYERS_PROJ));
     96
     97  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
     98    this->dataTank->objectManager->getObjectList(OM_GROUP_01_PROJ));
     99  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01),
     100    this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ));
     101  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
     102    this->dataTank->objectManager->getObjectList(OM_GROUP_01));
     103
     104  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
     105    this->dataTank->objectManager->getObjectList(OM_COMMON));
     106  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01),
     107    this->dataTank->objectManager->getObjectList(OM_COMMON));
     108
     109}
     110
     111
     112/**
    88113 * some debug ouptut - shell command
    89114 */
  • branches/network/src/story_entities/multi_player_world.h

    r6512 r8036  
    3131  protected:
    3232    virtual void synchronize();
     33    virtual void collide();
    3334};
    3435
Note: See TracChangeset for help on using the changeset viewer.