Changeset 5875 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/playable.h
- Timestamp:
- Dec 2, 2005, 3:33:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/playable.h
r5872 r5875 21 21 class Playable : public WorldEntity 22 22 { 23 24 23 public: 25 24 Playable(); … … 29 28 void loadParams(const TiXmlElement* root); 30 29 31 virtual void addWeapon(Weapon* weapon ) = 0;32 virtual void removeWeapon(Weapon* weapon) = 0;33 WeaponManager* getWeaponManager();30 virtual void addWeapon(Weapon* weapon ) {}//= 0; 31 virtual void removeWeapon(Weapon* weapon) {}//= 0; 32 inline WeaponManager* getWeaponManager() const { return this->weaponMan; }; 34 33 35 34 void subscribeEvents(Player* player); 36 virtual void process(const Event &event) = 0;37 virtual void setKeySet() ;35 virtual void process(const Event &event) {} //= 0; 36 virtual void setKeySet() {}; 38 37 inline const std::list<Event*>& getEventList() { return this->events; }; 39 38
Note: See TracChangeset
for help on using the changeset viewer.