Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10114 in orxonox.OLD for trunk/src/world_entities/spectator.cc


Ignore:
Timestamp:
Dec 19, 2006, 11:55:26 PM (19 years ago)
Author:
patrick
Message:

merged network back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/spectator.cc

    r10108 r10114  
    2222#include "shared_network_data.h"
    2323
    24 #include "class_id_DEPRECATED.h"
    25 ObjectListDefinitionID(Spectator, CL_SPECTATOR);
     24#include "src/world_entities/creatures/fps_player.h"
     25#include "src/world_entities/npcs/generic_npc.h"
     26
     27
     28ObjectListDefinition(Spectator);
    2629CREATE_FACTORY(Spectator);
    2730
     
    8386  registerEvent(KeyMapper::PEV_RIGHT);
    8487  registerEvent(KeyMapper::PEV_FIRE1);
     88  registerEvent(KeyMapper::PEV_JUMP);
    8589  registerEvent(EV_MOUSE_MOTION);
    8690
     
    233237    this->yMouse += event.yRel;
    234238  }
    235 }
    236 
    237 
    238 
    239 
     239  else if( event.type == KeyMapper::PEV_JUMP)
     240  {
     241//     FPSPlayer * fps = new FPSPlayer();
     242    //GenericNPC* fps = new GenericNPC();
     243    WorldEntity* fps = new WorldEntity();
     244    //WorldEntity * fps = new WorldEntity();
     245
     246    fps->setAbsCoor( this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ() );
     247    fps->setAbsDir( this->getAbsDir() );
     248    fps->loadMD2Texture( "doom_guy.png" );
     249    fps->loadModel( "models/creatures/doom_guy.md2", 10.0f );
     250    fps->toList( OM_GROUP_00);
     251    //fps->loadModel( "models/ships/terran_cruizer.obj" );
     252
     253    //((Playable*)fps)->setPlayDirection(  0, 0, 1, 0 );
     254  }
     255}
     256
     257
     258
     259
Note: See TracChangeset for help on using the changeset viewer.