Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2938 was 2171, checked in by landauf, 16 years ago

merged revisions 2111-2170 from objecthierarchy branch back to trunk.

  • Property svn:eol-style set to native
File size: 625 bytes
RevLine 
[1711]1
[1701]2#ifndef NETWORKCHAT_H
3#define NETWORKCHAT_H
4
[2087]5#include "../NetworkPrereqs.h"
6
[1701]7#include <string>
[1837]8#include <cstring>
[1701]9
[1711]10#include "Packet.h"
[1701]11
[2171]12namespace orxonox {
[1701]13namespace packet {
14/**
[2087]15        @author
[1701]16*/
[2087]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();
[2087]23
[1701]24  inline unsigned int getSize() const;
25  bool process();
[2087]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
[2171]35} //namespace orxonox
[1701]36
37#endif
Note: See TracBrowser for help on using the repository browser.