Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2005, 3:33:46 PM (18 years ago)
Author:
bensch
Message:

orxonox/branches/spaceshipcontrol: compiles again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/playable.cc

    r5872 r5875  
    1414*/
    1515
    16 #include "weapon_manager.h"
     16#include "weapons/weapon_manager.h"
    1717#include "playable.h"
     18#include "event_handler.h"
     19#include "player.h"
    1820
    1921
     
    2325}
    2426
    25 Playable::init()
     27Playable::~Playable()
     28{
     29
     30}
     31
     32void Playable::init()
    2633{
    2734  this->setClassID(CL_PLAYABLE, "Playable");
     
    3643{
    3744  /*EventHandler*/
    38   evh = EventHandler::getInstance();
     45  EventHandler* evh = EventHandler::getInstance();
    3946  for (int i = 0 ; i < events.size(); i++)
    4047  {
    41   if (!evh->isSubscribed(ES_GAME, i))
    42   evh->subscribe(this, ES_GAME, i);
    43 }
     48    if (!evh->isSubscribed(ES_GAME, i))
     49      evh->subscribe(player, ES_GAME, i);
     50  }
    4451
    4552}
    46 
    47 Playable::getWeaponManager()
    48 {
    49   return weaponMan;
    50 }
Note: See TracChangeset for help on using the changeset viewer.