Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2005, 3:06:50 PM (18 years ago)
Author:
snellen
Message:

player.cc and player.h updated ( in ../src/world_entities)

File:
1 edited

Legend:

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

    r5855 r5872  
    1717#include "playable.h"
    1818
     19
    1920Playable::Playable()
    2021{
     
    2930}
    3031
     32/**
     33 * subscribe to all events the controllable needs
     34 */
     35void Playable::subscribeEvents(Player* player)
     36{
     37  /*EventHandler*/
     38  evh = EventHandler::getInstance();
     39  for (int i = 0 ; i < events.size(); i++)
     40  {
     41  if (!evh->isSubscribed(ES_GAME, i))
     42  evh->subscribe(this, ES_GAME, i);
     43}
     44
     45}
     46
    3147Playable::getWeaponManager()
    3248{
Note: See TracChangeset for help on using the changeset viewer.