Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network/src/network/packet/Chat.h @ 1890

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

first efforts to make the network module 64bit compatible
gamestates are still missing

  • Property svn:eol-style set to native
File size: 564 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, unsigned int playerID );
18  Chat( uint8_t* data, unsigned 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  uint32_t messageLength_;
28  unsigned int clientID_;
29};
30
31} //namespace packet
32} //namespace network
33
34#endif
Note: See TracBrowser for help on using the repository browser.