source:
network-game/client/Client/chat.h@
7f9b01c
Last change on this file since 7f9b01c was 6319311, checked in by , 11 years ago | |
---|---|
|
|
File size: 468 bytes |
Rev | Line | |
---|---|---|
[6319311] | 1 | #ifndef _CHAT_H |
2 | #define _CHAT_H | |
[6475138] | 3 | |
4 | #include <string> | |
5 | #include <vector> | |
6 | ||
7 | #include <allegro5/allegro.h> | |
8 | #include <allegro5/allegro_font.h> | |
9 | ||
10 | using namespace std; | |
11 | ||
12 | class chat | |
13 | { | |
14 | private: | |
15 | vector<string> vctChat; | |
16 | string strPrompt; | |
17 | string strEnteredInput; | |
18 | public: | |
19 | chat(void); | |
20 | ~chat(void); | |
21 | ||
22 | string getInput(); | |
23 | ||
24 | void draw(ALLEGRO_FONT *font, ALLEGRO_COLOR color); | |
25 | void addLine(string s); | |
[bc70282] | 26 | void clear(); |
[6475138] | 27 | |
[87b3ee2] | 28 | bool handleEvent(ALLEGRO_EVENT e); |
[6475138] | 29 | }; |
30 | ||
[6319311] | 31 | #endif |
32 |
Note:
See TracBrowser
for help on using the repository browser.