Changeset 7801 for code/trunk/src/libraries/network/Client.h
- Timestamp:
- Dec 22, 2010, 7:24:24 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/network/Client.h
r7163 r7801 45 45 46 46 #include <string> 47 #include <deque> 47 48 48 49 #include "util/UtilPrereqs.h" 49 50 #include "util/Singleton.h" 50 51 #include "ClientConnection.h" 51 #include "GamestateClient.h"52 // #include "GamestateClient.h" 52 53 #include "Host.h" 53 54 #include "LANDiscovery.h" … … 78 79 void setDestination( const std::string& serverAddress, unsigned int port ); // tolua_export 79 80 bool closeConnection(); 80 bool queuePacket(ENetPacket *packet, int clientID); 81 void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID); 82 virtual bool sendPacket( packet::Packet* packet ){ return packet->send( static_cast<Host*>(this) ); } 81 83 bool processChat(const std::string& message, unsigned int playerID); 82 84 virtual bool chat(const std::string& message); … … 90 92 Client(const Client& copy); // not used 91 93 virtual bool isServer_(){return false;} 94 void processPacket(packet::Packet* packet); 92 95 93 96 static Client* singletonPtr_s; 94 GamestateClient* gamestate;95 97 bool isSynched_; 98 std::deque<packet::Packet*> packetQueue_; 96 99 97 100 bool gameStateFailure_;
Note: See TracChangeset
for help on using the changeset viewer.