Changeset 1232 for code/branches/network3/src/network/PacketManager.h
- Timestamp:
- May 5, 2008, 1:19:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network3/src/network/PacketManager.h
r1168 r1232 54 54 //call one of this functions out of an instance of PacketGenerator to create a packet 55 55 ENetPacket* acknowledgement( int state, int reliable = ENET_PACKET_FLAG_RELIABLE ); 56 ENetPacket* command( int dataLength, void *data, int reliable = ENET_PACKET_FLAG_RELIABLE ); 56 57 ENetPacket* mousem( double x, double y, int reliable = ENET_PACKET_FLAG_RELIABLE ); 57 58 ENetPacket* keystrike( char press, int reliable = ENET_PACKET_FLAG_RELIABLE ); … … 59 60 ENetPacket* gstate( GameStateCompressed *states, int reliable = ENET_PACKET_FLAG_RELIABLE ); 60 61 ENetPacket* clid( int classid, std::string classname, int reliable = ENET_PACKET_FLAG_RELIABLE ); 62 ENetPacket* generateWelcome( int clientID,int shipID, bool allowed, int reliable = ENET_PACKET_FLAG_RELIABLE ); 63 ENetPacket* generateConnectRequest( int reliable = ENET_PACKET_FLAG_RELIABLE ); 61 64 private: 62 65 }; … … 85 88 86 89 void acknowledgement( ENetPacket* packet, int clientId = CLIENTID_CLIENT ); 90 bool command( ENetPacket* packet, int clientId ); 87 91 void mousem( ENetPacket* packet, int clientId = CLIENTID_CLIENT ); 88 92 void keystrike( ENetPacket* packet, int clientId = CLIENTID_CLIENT ); … … 90 94 void gstate( ENetPacket* packet ); 91 95 void clid( ENetPacket *packet); 96 bool decodeWelcome( ENetPacket* packet, int clientID = CLIENTID_CLIENT ); 97 bool decodeConnectRequest( ENetPacket *packet, int clientID = CLIENTID_CLIENT ); 92 98 93 99 //process data … … 96 102 virtual void processAck( ack *data, int clientID); 97 103 virtual void processClassid( classid *cid); 104 virtual bool processWelcome( welcome *w ); 105 virtual bool processConnectRequest( connectRequest *con, int clientID ); 98 106 //virtual void processAck( ack *data); 99 107
Note: See TracChangeset
for help on using the changeset viewer.