Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2005, 5:51:59 PM (20 years ago)
Author:
snellen
Message:

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

File:
1 edited

Legend:

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

    r5852 r5853  
    5757
    5858/**
    59  * subscribe to all events because the player dosen't know to witch keys the controllable can react
     59 * subscribe to all events the controllable needs
    6060 */
    6161void Player::subscribeEvents()
    6262{
    63   EventHandler* evh = EventHandler::getInstance();
     63  /*EventHandler* evh = EventHandler::getInstance();
    6464  for (int i = 1; i < SDLK_LAST; i++)
    6565   {
     
    6767          evh->subscribe(this, ES_GAME, i);
    6868   }
    69 
     69  */
    7070}
    7171
     
    7878void Player::setControllable(Playable* controllalble)
    7979 {
     80   //todo get keyset an subscribe to the needed keys
    8081   this->controllable = controllable;
    8182 }
Note: See TracChangeset for help on using the changeset viewer.