00001 #include <string> 00002 #include "Chat.h" 00003 #include "Display.h" 00004 00005 Chat::Chat() 00006 { 00007 _message = ""; 00008 } 00009 00010 Chat::~Chat() 00011 { 00012 } 00013 00014 void Chat::draw() 00015 { 00016 Display::instance().draw( 20, 20, _message ); 00017 Display::instance().draw( 20, 400, _input ); 00018 } 00019 00020 void Chat::inputMessage( std::string text ) 00021 { 00022 _input = text; 00023 } 00024 00025 void Chat::sendMessage( std::string text ) 00026 { 00027 _input = ""; 00028 _message = text; 00029 } 00030