Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2143 was 2112, checked in by rgrieder, 16 years ago

Test: replacing namespace network with namespace orxonox. network::packet —> orxonox::packet

  • 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
[2112]12namespace orxonox {
[1701]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
[2112]35} //namespace orxonox
[1701]36
37#endif
Note: See TracBrowser for help on using the repository browser.