Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5840 in orxonox.OLD for branches/spaceshipcontrol/src


Ignore:
Timestamp:
Nov 30, 2005, 9:47:58 PM (19 years ago)
Author:
snellen
Message:

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

Location:
branches/spaceshipcontrol/src/world_entities
Files:
2 edited

Legend:

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

    r5839 r5840  
    7171}
    7272
     73void Player::subscribeEvents()
     74{
     75  //TODO: subscribe for all events!!
     76}
    7377
    7478void Player::process(const Event &event)
     
    7781}
    7882
     83void Player::setControllable(Playable controllalble)
     84 {
     85   this->controllable = controllable;
     86 }
     87
     88
     89Playable*     Player::getControllable()
     90{
     91  return controllable;
     92}
     93
  • branches/spaceshipcontrol/src/world_entities/player.h

    r5839 r5840  
    2626    virtual ~Player();
    2727
    28     void init();
     28    void          init();
     29    void          subscribeEvents();
    2930
    30     virtual void process(const Event &event);
     31    virtual void  process(const Event &event);
     32
     33    void          setControllable(Playable controllalble);
     34    Playable*     getControllable();
    3135
    3236
Note: See TracChangeset for help on using the changeset viewer.