source: network-game/client/Client/chat.h@ d2b411a

Last change on this file since d2b411a was 6475138, checked in by dportnoy <dmp1488@…>, 12 years ago

Added a chat class to encapsulate the server messages and text input

  • Property mode set to 100644
File size: 426 bytes
Line 
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include <allegro5/allegro.h>
7#include <allegro5/allegro_font.h>
8
9using namespace std;
10
11class chat
12{
13private:
14 vector<string> vctChat;
15 string strPrompt;
16 string strEnteredInput;
17public:
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);
25
26 bool processEvent(ALLEGRO_EVENT ev);
27};
28
Note: See TracBrowser for help on using the repository browser.