Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2031 was 1916, checked in by landauf, 16 years ago

removed WorldEntity, SpaceShip and several other objects
removed SpaceShip-related hacks in network and other places

  • Property svn:eol-style set to native
File size: 625 bytes
RevLine 
[1711]1
[1701]2#ifndef NETWORKCHAT_H
3#define NETWORKCHAT_H
4
[1916]5#include "../NetworkPrereqs.h"
6
[1701]7#include <string>
[1837]8#include <cstring>
[1701]9
[1711]10#include "Packet.h"
[1701]11
12namespace network {
13namespace packet {
14/**
[1916]15        @author
[1701]16*/
[1916]17class _NetworkExport Chat : public Packet
[1701]18{
19public:
[1907]20  Chat( std::string message, unsigned int playerID );
21  Chat( uint8_t* data, unsigned int clientID );
[1701]22  ~Chat();
[1916]23
[1701]24  inline unsigned int getSize() const;
25  bool process();
[1916]26
[1701]27  unsigned int getMessageLength(){ return messageLength_; };
28  unsigned char *getMessage();
29private:
[1907]30  uint32_t messageLength_;
31  unsigned int clientID_;
[1701]32};
33
34} //namespace packet
35} //namespace network
36
37#endif
Note: See TracBrowser for help on using the repository browser.