Last change
on this file since 8271c78 was bc70282, checked in by dportnoy <dmp1488@…>, 11 years ago |
The chat console resets when the user logs out
|
-
Property mode
set to
100644
|
File size:
441 bytes
|
Rev | Line | |
---|
[6475138] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | #include <string>
|
---|
| 4 | #include <vector>
|
---|
| 5 |
|
---|
| 6 | #include <allegro5/allegro.h>
|
---|
| 7 | #include <allegro5/allegro_font.h>
|
---|
| 8 |
|
---|
| 9 | using namespace std;
|
---|
| 10 |
|
---|
| 11 | class chat
|
---|
| 12 | {
|
---|
| 13 | private:
|
---|
| 14 | vector<string> vctChat;
|
---|
| 15 | string strPrompt;
|
---|
| 16 | string strEnteredInput;
|
---|
| 17 | public:
|
---|
| 18 | chat(void);
|
---|
| 19 | ~chat(void);
|
---|
| 20 |
|
---|
| 21 | string getInput();
|
---|
| 22 |
|
---|
| 23 | void draw(ALLEGRO_FONT *font, ALLEGRO_COLOR color);
|
---|
| 24 | void addLine(string s);
|
---|
[bc70282] | 25 | void clear();
|
---|
[6475138] | 26 |
|
---|
[87b3ee2] | 27 | bool handleEvent(ALLEGRO_EVENT e);
|
---|
[6475138] | 28 | };
|
---|
| 29 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.