Changeset 5898 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/playable.h
- Timestamp:
- Dec 3, 2005, 5:37:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/playable.h
r5896 r5898 25 25 virtual ~Playable(); 26 26 27 void init();28 27 29 28 virtual void addWeapon(Weapon* weapon ) {}//= 0; … … 34 33 bool unsubscribePlayer(Player* player); 35 34 36 virtual void process(const Event &event) {} //= 0; 35 virtual void process(const Event &event) = 0; 36 37 38 /** @return a List of Events in PEV_* sytle */ 37 39 inline const std::list<int>& getEventList() { return this->events; }; 38 40 … … 42 44 43 45 private: 46 void init(); 44 47 48 private: 45 49 WeaponManager* weaponMan; //!< the weapon manager: managing a list of weapon to wepaon-slot mapping 46 std::list<int> events; 50 std::list<int> events; //!< A list of Events, that are captured for this playable 47 51 48 Player* currentPlayer; 52 Player* currentPlayer; //!< The Player currently connected to this Playable (the one that has controll) otherwise NULL 49 53 50 54 };
Note: See TracChangeset
for help on using the changeset viewer.