Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/network/packet/Chat.h @ 1735

Last change on this file since 1735 was 1735, checked in by scheusso, 16 years ago

network branch merged into trunk

File size: 548 bytes
Line 
1
2#ifndef NETWORKCHAT_H
3#define NETWORKCHAT_H
4
5#include <string>
6
7#include "Packet.h"
8
9namespace network {
10namespace packet {
11/**
12        @author
13*/
14class Chat : public Packet
15{
16public:
17  Chat( std::string& message, int clientID );
18  Chat( unsigned char* data, int clientID );
19  ~Chat();
20 
21  inline unsigned int getSize() const;
22  bool process();
23 
24  unsigned int getMessageLength(){ return messageLength_; };
25  unsigned char *getMessage();
26private:
27  unsigned int messageLength_;
28  int clientID_;
29};
30
31} //namespace packet
32} //namespace network
33
34#endif
Note: See TracBrowser for help on using the repository browser.