Changeset 1706 for code/branches/network
- Timestamp:
- Sep 4, 2008, 9:53:56 PM (16 years ago)
- Location:
- code/branches/network/src/network
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/packet/PacketContent.h
r1705 r1706 44 44 public: 45 45 virtual ~PacketContent() 46 { if(data_) delete[] data_; } 46 { 47 if(data_) delete[] data_; 48 } 47 49 virtual unsigned char *getData()=0; 48 50 virtual unsigned int getSize() const =0; 49 int getClientID(){return clientID_;} 51 int getClientID() 52 { 53 return clientID_; 54 } 50 55 virtual bool process()=0; 51 enet_uint32 getFlags(){ return flags_; } 56 enet_uint32 getFlags() 57 { 58 return flags_; 59 } 52 60 protected: 53 61 PacketContent() 54 { flags_ = PACKET_FLAG_DEFAULT; 62 { 63 flags_ = PACKET_FLAG_DEFAULT; 55 64 data_=0; } 56 65 PacketContent( unsigned char *data, int clientID )
Note: See TracChangeset
for help on using the changeset viewer.