Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2005, 5:37:17 PM (20 years ago)
Author:
bensch
Message:

controll documentation

File:
1 edited

Legend:

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

    r5896 r5898  
    3838}
    3939
     40/**
     41 * initializes this Playable
     42 */
    4043void Playable::init()
    4144{
    4245  this->setClassID(CL_PLAYABLE, "Playable");
    4346  PRINTF(4)("PLAYABLE INIT\n");
     47
    4448  this->weaponMan = new WeaponManager(this);
    4549
     50  // the reference to the Current Player is NULL, because we dont have one at the beginning.
    4651  this->currentPlayer = NULL;
    4752}
     
    4954/**
    5055 * subscribe to all events the controllable needs
     56 * @param player the player that shall controll this Playable
    5157 */
    5258bool Playable::subscribePlayer(Player* player)
     
    7177
    7278/**
    73  * subscribe to all events the controllable needs
     79 * unsubscribe from all events the controllable needs
     80 * @param player the Player, that controlled this Ship.
    7481 */
    7582bool Playable::unsubscribePlayer(Player* player)
     
    95102
    96103/**
    97  * add an event to the event list
     104 * add an event to the event list of events this Playable can capture
     105 * @param eventType the Type of event to add
    98106 */
    99107void Playable::registerEvent(int eventType)
     
    106114
    107115/**
    108  * add an event to the event list
     116 * remove an event to the event list this Playable can capture.
     117 * @param event the event to unregister.
    109118 */
    110119void Playable::unregisterEvent(int eventType)
Note: See TracChangeset for help on using the changeset viewer.