Last change
on this file since 1967 was
1907,
checked in by scheusso, 16 years ago
|
merged network branch back to trunk
|
-
Property svn:eol-style set to
native
|
File size:
583 bytes
|
Rev | Line | |
---|
[1711] | 1 | |
---|
[1701] | 2 | #ifndef NETWORKCHAT_H |
---|
| 3 | #define NETWORKCHAT_H |
---|
| 4 | |
---|
| 5 | #include <string> |
---|
[1837] | 6 | #include <cstring> |
---|
[1701] | 7 | |
---|
[1711] | 8 | #include "Packet.h" |
---|
[1701] | 9 | |
---|
| 10 | namespace network { |
---|
| 11 | namespace packet { |
---|
| 12 | /** |
---|
| 13 | @author |
---|
| 14 | */ |
---|
[1711] | 15 | class Chat : public Packet |
---|
[1701] | 16 | { |
---|
| 17 | public: |
---|
[1907] | 18 | Chat( std::string message, unsigned int playerID ); |
---|
| 19 | Chat( uint8_t* data, unsigned int clientID ); |
---|
[1701] | 20 | ~Chat(); |
---|
| 21 | |
---|
| 22 | inline unsigned int getSize() const; |
---|
| 23 | bool process(); |
---|
| 24 | |
---|
| 25 | unsigned int getMessageLength(){ return messageLength_; }; |
---|
| 26 | unsigned char *getMessage(); |
---|
| 27 | private: |
---|
[1907] | 28 | uint32_t messageLength_; |
---|
| 29 | unsigned int clientID_; |
---|
[1701] | 30 | }; |
---|
| 31 | |
---|
| 32 | } //namespace packet |
---|
| 33 | } //namespace network |
---|
| 34 | |
---|
| 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.