Changeset 5898 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/playable.cc
- Timestamp:
- Dec 3, 2005, 5:37:17 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/playable.cc
r5896 r5898 38 38 } 39 39 40 /** 41 * initializes this Playable 42 */ 40 43 void Playable::init() 41 44 { 42 45 this->setClassID(CL_PLAYABLE, "Playable"); 43 46 PRINTF(4)("PLAYABLE INIT\n"); 47 44 48 this->weaponMan = new WeaponManager(this); 45 49 50 // the reference to the Current Player is NULL, because we dont have one at the beginning. 46 51 this->currentPlayer = NULL; 47 52 } … … 49 54 /** 50 55 * subscribe to all events the controllable needs 56 * @param player the player that shall controll this Playable 51 57 */ 52 58 bool Playable::subscribePlayer(Player* player) … … 71 77 72 78 /** 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. 74 81 */ 75 82 bool Playable::unsubscribePlayer(Player* player) … … 95 102 96 103 /** 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 98 106 */ 99 107 void Playable::registerEvent(int eventType) … … 106 114 107 115 /** 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. 109 118 */ 110 119 void Playable::unregisterEvent(int eventType)
Note: See TracChangeset
for help on using the changeset viewer.