Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5850 in orxonox.OLD for branches/spaceshipcontrol


Ignore:
Timestamp:
Dec 1, 2005, 5:07:17 PM (19 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

    r5849 r5850  
    6262void Player::subscribeEvents()
    6363{
    64   //TODO: subscribe for all events!!
     64  EventHandler* evh = EventHandler::getInstance();
     65  for (int i = 1; i < SDLK_LAST; i++)
     66   {
     67     if (!evh->isSubscribed(ES_GAME, i))
     68          evh->subscribe(this, ES_GAME, i);
     69   }
     70
    6571}
    6672
Note: See TracChangeset for help on using the changeset viewer.