Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/buerli/gui/orxonox_gui_keys.h @ 2707

Last change on this file since 2707 was 2707, checked in by bensch, 20 years ago

orxonox/branches/buerli: merged back from trunk, with new configure makefile and so forth.

File size: 796 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 */
14enum KEYS { UP, DOWN, LEFT, RIGTH, SHOOT };
15
16/**
17   \brief Class to hold infos about a Player
18*/
19class Player
20{
21 private:
22  char keys[10];
23  Button* openButton;
24  Window* window;
25 
26 public:
27  Player(char* player);
28
29  Button* getOpenButton();
30
31  void setkey(KEYS key);
32 
33};
34
35//! Class that creates the Keys-Options.
36class OrxonoxGuiKeys
37{
38 private:
39  Frame* keysFrame;
40  Box* keysBox;
41  Player* player1;
42  Player* player2;
43  Button* misc;
44
45 public:
46  OrxonoxGuiKeys ();
47  ~OrxonoxGuiKeys ();
48 
49  Widget* getWidget ();
50};
51
52
53   
54
55#endif /* _ORXONOX_GUI_KEYS_H */
Note: See TracBrowser for help on using the repository browser.