|
Last change
on this file since c9f6a1c was 6319311, checked in by Dmitry Portnoy <dportnoy@…>, 12 years ago |
|
Some redfinition issues related to winsock2 are fixed and a few allegro rendering functions are now in GameRender
|
-
Property mode
set to
100644
|
|
File size:
468 bytes
|
| Line | |
|---|
| 1 | #ifndef _CHAT_H
|
|---|
| 2 | #define _CHAT_H
|
|---|
| 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);
|
|---|
| 26 | void clear();
|
|---|
| 27 |
|
|---|
| 28 | bool handleEvent(ALLEGRO_EVENT e);
|
|---|
| 29 | };
|
|---|
| 30 |
|
|---|
| 31 | #endif
|
|---|
| 32 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.