source:
code/trunk/src/network/packet/Chat.h
@
2229
Last change on this file since 2229 was 2171, checked in by landauf, 16 years ago | |
---|---|
|
|
File size: 625 bytes |
Rev | Line | |
---|---|---|
[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] | 12 | namespace orxonox { |
[1701] | 13 | namespace packet { |
14 | /** | |
[2087] | 15 | @author |
[1701] | 16 | */ |
[2087] | 17 | class _NetworkExport Chat : public Packet |
[1701] | 18 | { |
19 | public: | |
[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(); | |
29 | private: | |
[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.