Changeset 3152 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_keys.h
- Timestamp:
- Dec 11, 2004, 5:36:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_keys.h
r2737 r3152 15 15 enum KEYS { UP, DOWN, LEFT, RIGHT, SHOOT }; 16 16 17 //! Class to hold infos about a Player 18 class Player 19 { 20 private: 21 Window* keyWindow; 22 bool windowIsOpen; 23 Button* openButton; 24 25 26 Box* keysBox; 27 28 Box* keyBox[10]; 29 Button* keyButton[10]; 30 Label* keyLabel[10]; 31 32 33 public: 34 Player(char* player); 35 36 Widget* addKey (KEYS key, char* name); 37 38 Button* getOpenButton(); 39 40 void openWindow (); 41 42 static gint openWindowEvent(GtkWidget* widget, GdkEvent* event, void* player); 43 static gint key_cb(GtkWidget* w, GdkEventKey* event, void* widget); 44 void setkey(KEYS key); 45 46 }; 47 17 class Player; 48 18 //! Class that creates the Keys-Options. 49 19 class OrxonoxGuiKeys … … 63 33 }; 64 34 35 //! Class to hold infos about a Player 36 class Player 37 { 38 private: 39 Window* pKeyWindow; 40 Button* openButton; 41 Button* closeButton; 42 Box* pKeysBox; 43 44 Box* pKeyBox[10]; 45 Button* pKeyButton[10]; 46 Label* pKeyLabel[10]; 47 48 49 public: 50 Player(char* player); 51 52 Widget* addKey (KEYS key, char* name); 53 54 Button* getOpenButton(); 55 56 static gint openWindowEvent(GtkWidget* widget, GdkEvent* event, void* player); 57 static gint closeWindowEvent(GtkWidget* widget, GdkEvent* event, void* player); 58 static gint key_cb(GtkWidget* w, GdkEventKey* event, void* widget); 59 void setkey(KEYS key); 60 61 }; 65 62 66 63
Note: See TracChangeset
for help on using the changeset viewer.