Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6085 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 13, 2005, 11:52:02 AM (19 years ago)
Author:
patrick
Message:

network: worked on the network_world

Location:
branches/network/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/Makefile.am

    r6080 r6085  
    4949                  story_entities/campaign.cc \
    5050                  story_entities/world.cc \
     51                  story_entities/network_world.cc \
    5152                  world_entities/world_entity.cc \
    5253                  world_entities/camera.cc \
     
    9293                 story_entities/campaign.h \
    9394                 story_entities/world.h \
     95                 story_entities/network_world.h \
    9496                 world_entities/world_entity.h \
    9597                 world_entities/camera.h \
  • branches/network/src/story_entities/network_world.cc

    r6069 r6085  
    325325      if( created != NULL )
    326326      {
    327         if(created->isA(CL_WORLD_ENTITY))
     327        if(created->isA(CL_SPAWNING_POINT))
    328328          this->spawn(dynamic_cast<WorldEntity*>(created));
    329329        printf("Created a Spawning Point %s: %s\n", created->getClassName(), created->getName());
    330330      }
    331331
    332           // if we load a 'Player' we use it as localPlayer
    333 
    334 
    335           //todo do this more elegant
    336       if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox"))
    337         sky = dynamic_cast<SkyBox*>(created);
    338       if( element->Value() != NULL && !strcmp( element->Value(), "Terrain"))
    339       {
    340         terrain = dynamic_cast<Terrain*>(created);
    341         CDEngine::getInstance()->setTerrain(terrain);
    342       }
     332
    343333      element = element->NextSiblingElement();
    344334      glmis->step(); //! @todo temporary
  • branches/network/src/world_entities/Makefile.am

    r5915 r6085  
    88                  camera.cc \
    99                  playable.cc \
    10                   player.cc \
     10                              player.cc \
    1111                  npc.cc \
    1212                  npc2.cc \
     
    1818                  character_attributes.cc \
    1919                  test_entity.cc \
    20                   space_ships/space_ship.cc \
     20                              space_ships/space_ship.cc \
    2121                  weapons/weapon_manager.cc \
    2222                  weapons/weapon.cc \
     
    2727                  weapons/rocket.cc \
    2828                  weapons/laser.cc \
    29                   weapons/ground_turret.cc \
     29                              weapons/ground_turret.cc \
    3030                  weapons/crosshair.cc \
    31                   weapons/ground_turret.cc \
     31                              weapons/ground_turret.cc \
    3232                  power_ups/power_up.cc \
    3333                  power_ups/turret_power_up.cc \
     
    3838                 camera.h \
    3939                 playable.h \
    40                  player.h \
     40                             player.h \
    4141                 npc.h \
    4242                 npc2.h \
Note: See TracChangeset for help on using the changeset viewer.