equal
deleted
inserted
replaced
2 #define GRAPHICS_GAME_VIEW_HH |
2 #define GRAPHICS_GAME_VIEW_HH |
3 |
3 |
4 #include "Drawable.hh" |
4 #include "Drawable.hh" |
5 #include "PlayerInfoView.hh" |
5 #include "PlayerInfoView.hh" |
6 #include "MessageView.hh" |
6 #include "MessageView.hh" |
|
7 #include "Input.hh" |
7 #include "../GameState.hh" |
8 #include "../GameState.hh" |
8 |
9 |
9 #include "../Input.hh" |
|
10 |
10 |
11 namespace graphics |
11 namespace graphics |
12 { |
12 { |
13 |
13 |
14 /** |
14 /** |
15 * This is the main in-game view, which is what the player sees when they are playing |
15 * This is the main in-game view, which is what the player sees when they are playing. |
|
16 * |
|
17 * This enables graphics->input.gui/player |
16 */ |
18 */ |
17 class GameView : public View { |
19 class GameView : public View { |
18 protected: |
20 protected: |
19 /** The GameState that we're drawing */ |
21 /** The GameState that we're drawing */ |
20 GameState &state; |
22 GameState &state; |
61 */ |
63 */ |
62 PixelArea getMessageViewArea (void) { |
64 PixelArea getMessageViewArea (void) { |
63 return PixelArea(400, area.bottom - 100, area.right, area.bottom); |
65 return PixelArea(400, area.bottom - 100, area.right, area.bottom); |
64 } |
66 } |
65 |
67 |
|
68 /** |
|
69 * Handle GUI input |
|
70 */ |
|
71 void handleInput (GuiInput flags, TimeMS dt); |
|
72 |
66 public: |
73 public: |
67 |
74 |
68 /** |
75 /** |
69 * Draw this view onto the given display |
76 * Draw this view onto the given display |
70 */ |
77 */ |