Changeset 777 for code/branches/FICN/src/network/PacketTypes.h
- Timestamp:
- Dec 31, 2007, 7:40:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/PacketTypes.h
r673 r777 14 14 #define _PacketTypes_H__ 15 15 16 namespace network{ 17 enum packet_id { 18 ACK, 19 MOUSE, 20 KEYBOARD, 21 CHAT, 22 GAMESTATE , 23 CLASSID 24 }; 16 #include "NetworkPrereqs.h" 17 18 namespace network 19 { 20 enum packet_id { 21 ACK, 22 MOUSE, 23 KEYBOARD, 24 CHAT, 25 GAMESTATE , 26 CLASSID 27 }; 25 28 26 29 27 30 /** 28 29 30 31 31 * This struct defines a gamestate: 32 * size: total size of the data in *data 33 * data: pointer to the data allocated in the memory 34 */ 32 35 struct GameState{ 33 36 int id; … … 39 42 40 43 /** 41 42 43 44 45 44 * this struct defines a gamestate: 45 * compsize is the size of the compressed data 46 * normsize is the size of the uncompressed data 47 * data are the gamestates 48 */ 46 49 struct GameStateCompressed{ 47 50 int id; … … 76 79 char press; 77 80 }; 78 79 81 //only in this class, not PacketGenerator, used as pattern to put incoming 82 //bytes inside 80 83 struct chat { 81 84 int id;
Note: See TracChangeset
for help on using the changeset viewer.