Last change
on this file since 2623 was
2613,
checked in by bensch, 20 years ago
|
orxonox/trunk/gui: added class keys
|
File size:
793 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file orxonox_gui_keys.h |
---|
3 | \brief File that holds the class that creates the Keyboard-Options. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _ORXONOX_GUI_KEYS_H |
---|
7 | #define _ORXONOX_GUI_KEYS_H |
---|
8 | |
---|
9 | #include "orxonox_gui.h" |
---|
10 | |
---|
11 | /** |
---|
12 | * defines the Possible Player Keys |
---|
13 | */ |
---|
14 | enum KEYS { UP, DOWN, LEFT, RIGTH, SHOOT }; |
---|
15 | |
---|
16 | /** |
---|
17 | \brief Class to hold infos about a Player |
---|
18 | */ |
---|
19 | class Player |
---|
20 | { |
---|
21 | private: |
---|
22 | char keys[10]; |
---|
23 | Button* openButton; |
---|
24 | Window* window; |
---|
25 | public: |
---|
26 | Player(char* player); |
---|
27 | |
---|
28 | Button* getOpenButton(); |
---|
29 | |
---|
30 | void setkey(KEYS key); |
---|
31 | |
---|
32 | }; |
---|
33 | |
---|
34 | //! Class that creates the Keys-Options. |
---|
35 | class OrxonoxGuiKeys |
---|
36 | { |
---|
37 | private: |
---|
38 | Frame* keysFrame; |
---|
39 | Box* keysBox; |
---|
40 | Player* player1; |
---|
41 | Player* player2; |
---|
42 | Button* misc; |
---|
43 | |
---|
44 | public: |
---|
45 | OrxonoxGuiKeys (); |
---|
46 | ~OrxonoxGuiKeys (); |
---|
47 | |
---|
48 | Widget* getWidget (); |
---|
49 | }; |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | |
---|
54 | #endif /* _ORXONOX_GUI_KEYS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.