Changeset 4404 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 30, 2005, 6:27:45 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/event/event.h
r4381 r4404 15 15 16 16 //! An abstract event class 17 class Event : public BaseObject {17 class Event : virtual public BaseObject { 18 18 19 19 public: -
orxonox/trunk/src/util/event/event_listener.h
r4365 r4404 14 14 15 15 //! A class for event listener 16 class EventListener : public BaseObject {16 class EventListener : virtual public BaseObject { 17 17 18 18 public: -
orxonox/trunk/src/world_entities/player.cc
r4397 r4404 28 28 #include "stdincl.h" 29 29 30 #include "event_handler.h" 30 31 31 32 #include "projectile.h" 33 #include "event.h" 32 34 33 35 using namespace std; … … 65 67 } 66 68 69 67 70 /** 68 71 \brief destructs the player, deletes alocated memory … … 76 79 delete this->weaponMan; 77 80 } 81 78 82 79 83 /** … … 110 114 } 111 115 116 112 117 /** 113 118 \brief adds a weapon to the weapon list of player … … 275 280 if( !strcmp( cmd->cmd, CONFIG_NAME_PLAYER_NEXT_WEAPON)) if(cmd->bUp) this->bWeaponChange = !this->bWeaponChange; 276 281 } 282 283 284 void Player::process(const Event &event) 285 { 286 287 } -
orxonox/trunk/src/world_entities/player.h
r4382 r4404 9 9 #include "world_entity.h" 10 10 #include "physics_interface.h" 11 #include "event_listener.h" 11 12 12 13 template<class T> class tList; … … 15 16 class Vector; 16 17 class World; 18 class Event; 17 19 18 20 //! Basic controllable WorldEntity 19 class Player : public WorldEntity, public PhysicsInterface 21 class Player : public WorldEntity, public PhysicsInterface, public EventListener 20 22 { 21 23 friend class World; … … 38 40 39 41 virtual void command(Command* cmd); 42 43 virtual void process(const Event &event); 40 44 41 45 private:
Note: See TracChangeset
for help on using the changeset viewer.