Last change
on this file since 2939 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
|
Line | |
---|
1 | |
---|
2 | #ifndef NETWORKCHAT_H |
---|
3 | #define NETWORKCHAT_H |
---|
4 | |
---|
5 | #include "../NetworkPrereqs.h" |
---|
6 | |
---|
7 | #include <string> |
---|
8 | #include <cstring> |
---|
9 | |
---|
10 | #include "Packet.h" |
---|
11 | |
---|
12 | namespace orxonox { |
---|
13 | namespace packet { |
---|
14 | /** |
---|
15 | @author |
---|
16 | */ |
---|
17 | class _NetworkExport Chat : public Packet |
---|
18 | { |
---|
19 | public: |
---|
20 | Chat( std::string message, unsigned int playerID ); |
---|
21 | Chat( uint8_t* data, unsigned int clientID ); |
---|
22 | ~Chat(); |
---|
23 | |
---|
24 | inline unsigned int getSize() const; |
---|
25 | bool process(); |
---|
26 | |
---|
27 | unsigned int getMessageLength(){ return messageLength_; }; |
---|
28 | unsigned char *getMessage(); |
---|
29 | private: |
---|
30 | uint32_t messageLength_; |
---|
31 | unsigned int clientID_; |
---|
32 | }; |
---|
33 | |
---|
34 | } //namespace packet |
---|
35 | } //namespace orxonox |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.