#include <src/network/packet/Chat.h>
Public Member Functions | |
Chat (uint8_t *data, unsigned int clientID) | |
Chat (const std::string &message, unsigned int playerID) | |
unsigned char * | getMessage () |
unsigned int | getMessageLength () |
unsigned int | getSize () const |
bool | process () |
~Chat () | |
Private Attributes | |
unsigned int | clientID_ |
uint32_t | messageLength_ |
orxonox::packet::Chat::Chat | ( | const std::string & | message, | |
unsigned int | playerID | |||
) |
orxonox::packet::Chat::Chat | ( | uint8_t * | data, | |
unsigned int | clientID | |||
) |
References _MESSAGELENGTH, and messageLength_.
orxonox::packet::Chat::~Chat | ( | ) |
unsigned char * orxonox::packet::Chat::getMessage | ( | ) |
References _MESSAGE, and orxonox::packet::Packet::data_.
unsigned int orxonox::packet::Chat::getMessageLength | ( | ) | [inline] |
unsigned int orxonox::packet::Chat::getSize | ( | ) | const [inline, virtual] |
bool orxonox::packet::Chat::process | ( | ) | [virtual] |
Implements orxonox::packet::Packet.
References _MESSAGE, orxonox::packet::_PLAYERID, orxonox::packet::Packet::data_, and orxonox::Host::incomingChat().
unsigned int orxonox::packet::Chat::clientID_ [private] |
Reimplemented from orxonox::packet::Packet.
uint32_t orxonox::packet::Chat::messageLength_ [private] |