Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 3, 2006, 10:27:59 AM (18 years ago)
Author:
rennerc
Message:

moved copy constructor from LimitedWidthText to BaseObject

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/spectator.cc

    r9869 r9915  
    2121
    2222#include "shared_network_data.h"
     23
     24#include "src/world_entities/creatures/fps_player.h"
    2325
    2426#include "class_id_DEPRECATED.h"
     
    7981  registerEvent(KeyMapper::PEV_RIGHT);
    8082  registerEvent(KeyMapper::PEV_FIRE1);
     83  registerEvent(KeyMapper::PEV_JUMP);
    8184  registerEvent(EV_MOUSE_MOTION);
    8285
     
    229232    this->yMouse += event.yRel;
    230233  }
    231 }
    232 
    233 
    234 
    235 
     234  else if( event.type == KeyMapper::PEV_JUMP)
     235  {
     236    //FPSPlayer * fps = new FPSPlayer();
     237    WorldEntity * fps = new WorldEntity();
     238   
     239    fps->setAbsCoor( this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ() );
     240    fps->setAbsDir( this->getAbsDir() );
     241    //fps->loadMD2Texture( "doom_guy.png" );
     242    //fps->loadModel( "models/creatures/doom_guy.md2", 10.0f );
     243    fps->loadModel( "models/ships/terran_cruizer.obj" );
     244
     245    //((Playable*)fps)->setPlayDirection(  0, 0, 1, 0 );
     246  }
     247}
     248
     249
     250
     251
Note: See TracChangeset for help on using the changeset viewer.