Changeset 4405 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- May 30, 2005, 6:36:43 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4397 r4405 62 62 63 63 #include "projectile.h" 64 #include "event_handler.h" 64 65 65 66 using namespace std; … … 418 419 Orxonox *orx = Orxonox::getInstance (); 419 420 orx->getLocalInput()->bind (localPlayer); 421 422 EventHandler::getInstance()->subscribe(this->localPlayer, ES_ALL, KeyMapper::PEV_UP); 420 423 421 424 // bind camera -
orxonox/trunk/src/util/event/event_handler.cc
r4398 r4405 80 80 } 81 81 82 void EventHandler::subscribe Listener(EventListener* el, elState state, int eventType)82 void EventHandler::subscribe(EventListener* el, elState state, int eventType) 83 83 { 84 84 if( likely(this->listeners[state][eventType] == NULL)) … … 89 89 90 90 91 void EventHandler::unsubscribe Listener(int eventType, elState state)91 void EventHandler::unsubscribe(int eventType, elState state) 92 92 { 93 93 this->listeners[state][eventType] = NULL; -
orxonox/trunk/src/util/event/event_handler.h
r4388 r4405 9 9 10 10 #include "base_object.h" 11 #include "key_mapper.h" 11 12 #include "event_def.h" 12 13 … … 23 24 void setState(elState state); 24 25 25 void subscribe Listener(EventListener* el, elState state, int eventType);26 void unsubscribe Listener(int eventType, elState state);26 void subscribe(EventListener* el, elState state, int eventType); 27 void unsubscribe(int eventType, elState state); 27 28 void flush(elState state); 28 29 -
orxonox/trunk/src/util/event/key_mapper.h
r4403 r4405 14 14 15 15 16 //! Key aliasing structure 17 /** 18 This structure contains the key aliasing information, e.g. the command strings that 19 have been bound to the keys. 20 */ 21 typedef struct 22 { 23 char keys[N_STD_KEYS][CMD_LENGHT]; 24 char buttons[N_BUTTONS][CMD_LENGHT]; 25 } KeyBindings; 16 26 17 27 18 typedef struct orxKeyMapping -
orxonox/trunk/src/world_entities/player.cc
r4404 r4405 203 203 void Player::tick (float time) 204 204 { 205 printf("%p\n", this);206 this->getRelCoor().debug();205 //printf("%p\n", this); 206 //this->getRelCoor().debug(); 207 207 208 208 /* link tick to weapon */
Note: See TracChangeset
for help on using the changeset viewer.