Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5093 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Aug 21, 2005, 11:17:50 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: inputLine is working.

Location:
trunk/src/lib/event
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event.h

    r5039 r5093  
    22 * @file event.h
    33 * an abstract event
     4 *
     5 * @todo remove HUGE class-overhead. This could also be a struct
    46*/
    57
  • trunk/src/lib/event/event_handler.cc

    r4873 r5093  
    8989  this->keyMapper->loadKeyBindings(iniParser);
    9090}
    91 
    92 
    93 /**
    94  *  set the state of the event handler
    95  * @param state: to which the event handler shall change
    96 */
    97 void EventHandler::setState(elState state)
    98 {
    99   this->state = state;
    100 }
    101 
    10291
    10392/**
  • trunk/src/lib/event/event_handler.h

    r5039 r5093  
    2626  void init(IniParser* iniParser);
    2727
    28   void setState(elState state);
     28  /** @param state: to which the event handler shall change */
     29  inline void setState(elState state) { this->state = state; };
     30  /** @returns the current state */
     31  inline elState getState() const { return this->state; };
    2932
    3033  void subscribe(EventListener* el, elState state, int eventType);
Note: See TracChangeset for help on using the changeset viewer.