Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5069 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Aug 18, 2005, 9:35:49 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: EventDef is ok now… sorry paede i misunderstud the structure of enum

Location:
orxonox/trunk/src
Files:
3 edited

Legend:

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

    r5039 r5069  
    1818typedef enum extEventTyes
    1919{
    20   EV_MOUSE_BUTTON_LEFT            = SDLK_LAST,
     20  EV_MOUSE_BUTTON_LEFT           = SDLK_LAST,
    2121  EV_MOUSE_BUTTON_MIDDLE,
    2222  EV_MOUSE_BUTTON_RIGHT,
    2323  EV_MOUSE_BUTTON_WHEELUP,
    2424  EV_MOUSE_BUTTON_WHEELDOWN,
    25   EV_MOUSE_MOTION                 = SDL_MOUSEMOTION,
     25  EV_MOUSE_MOTION,
    2626  EV_JOY_AXIS_MOTION,
    2727  EV_JOY_BALL_MOTION,
     
    2929  EV_JOY_BUTTON,
    3030
    31   EV_VIDEO_RESIZE                 = SDL_VIDEORESIZE,
     31  EV_VIDEO_RESIZE,
    3232
    3333  EV_UNKNOWN,
    3434
    35   EV_NUMBER = 500,  //!< FIXME MSUT Resolve this EV_NUMBER should hold all the Events, also the count of other events
     35  EV_NUMBER
    3636};
    3737
     
    4343    ES_GAME_MENU,      //!< state when the menu is called during game
    4444    ES_MENU,           //!< orxonox menu state
     45    ES_SHELL,          //!< if we are in shell Modus
    4546
    4647    ES_ALL,            //!< you want to register events for all states
  • orxonox/trunk/src/util/shell.cc

    r5068 r5069  
    112112}
    113113
     114/**
     115 * listens for some event
     116 * @param event the Event happened
     117 */
     118void Shell::process(const Event &event)
     119{
     120//  if (event.type)
     121
     122}
    114123
    115124/**
  • orxonox/trunk/src/util/shell.h

    r5068 r5069  
    88
    99#include "element_2d.h"
     10#include "event_listener.h"
    1011
    1112#include <stdio.h>
     
    2930 * @todo implement what is written above :/
    3031 */
    31 class Shell : public Element2D {
     32class Shell : public Element2D, public EventListener {
    3233
    3334  public:
     
    4748    const char* getBufferLine(unsigned int lineNumber);
    4849
    49   // inputLine
     50    // InputLine
    5051    void flushInputLine();
    5152    void addCharacter(char character);
     
    5354    void removeCharacters(unsigned int characterCount = 1);
    5455
     56
     57    // EventListener
     58    virtual void process(const Event &event);
    5559
    5660    // Element2D-functions
     
    7377    char*                  inputLine;
    7478
    75     tList<const char>*     buffer;
     79    tList<char>*           buffer;
    7680
    7781    tList<Text>*           bufferText;             //!< A list of sored bufferLines of the Shell
Note: See TracChangeset for help on using the changeset viewer.