source: network-game/client/Client/Window.h@ f63aa57

Last change on this file since f63aa57 was f63aa57, checked in by dportnoy <dmp1488@…>, 11 years ago

The old Game window has been completely removed from the client and the client frees all gui components on its own, instead of relying on the Window destructor

  • Property mode set to 100644
File size: 441 bytes
Line 
1#ifndef _WINDOW_H
2#define _WINDOW_H
3
4#include "GuiComponent.h"
5
6#include <vector>
7
8using namespace std;
9
10class Window :
11 public GuiComponent
12{
13private:
14 vector<GuiComponent*> vctGui;
15
16public:
17 Window(int x, int y, int width, int height);
18 ~Window(void);
19
20 GuiComponent* addComponent(GuiComponent* comp);
21 GuiComponent* getComponent(int x);
22 void draw(ALLEGRO_DISPLAY *display);
23 bool handleEvent(ALLEGRO_EVENT& e);
24};
25
26#endif
Note: See TracBrowser for help on using the repository browser.