- Timestamp:
- Mar 22, 2018, 4:12:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Masterserver_FS18/src/libraries/network/Host.h
r8858 r11829 40 40 const unsigned int CLIENTID_SERVER = 0; 41 41 const unsigned int NETWORK_FREQUENCY = 25; 42 const float NETWORK_PERIOD = 1.0f /NETWORK_FREQUENCY;42 const float NETWORK_PERIOD = 1.0f / NETWORK_FREQUENCY; 43 43 44 44 /** … … 55 55 56 56 private: 57 virtual void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) =0;57 virtual void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) = 0; 58 58 virtual bool isServer_()=0; 59 59 … … 63 63 void setActive( bool bActive ){ bIsActive_ = bActive; } 64 64 65 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) =0;66 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) =0;65 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) = 0; 66 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) = 0; 67 67 68 68 public: … … 74 74 static bool isServer(); 75 75 static void sendChat(const std::string& message, unsigned int sourceID, unsigned int targetID); 76 virtual void printRTT() =0;76 virtual void printRTT() = 0; 77 77 bool isActive(){ return bIsActive_; } 78 78 79 private: 79 80 static uint32_t clientID_s;
Note: See TracChangeset
for help on using the changeset viewer.