29 #ifndef _NETWORK_Host_H__    30 #define _NETWORK_Host_H__    57     virtual void queuePacket(
ENetPacket *packet, 
int clientID, uint8_t channelID) = 0;
    58     virtual bool isServer_()=0;
    63     void setActive( 
bool bActive ){ bIsActive_ = bActive; }
    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;
    69     static Host* getActiveInstance();
    70     static bool running(){ 
return instances_s.size(); }
    74     static bool isServer();
    75     static void sendChat(
const std::string& message, 
unsigned int sourceID, 
unsigned int targetID);
    76     virtual void printRTT() = 0;
 void setActive(bool bActive)
Definition: Host.h:63
 
Shared library macros, enums, constants and forward declarations for the network library  ...
 
static void setClientID(unsigned int id)
Definition: Host.h:73
 
static unsigned int getPlayerID()
Definition: Host.h:72
 
static constexpr unsigned int NETWORK_PEER_ID_SERVER
Definition: NetworkPrereqs.h:73
 
Shared library macros, enums, constants and forward declarations for the core library  ...
 
::std::string string
Definition: gtest-port.h:756
 
const unsigned int CLIENTID_SERVER
Definition: Host.h:40
 
const unsigned int NETWORK_FREQUENCY
Definition: Host.h:41
 
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
 
static bool running()
Definition: Host.h:70
 
This Class implements a manager for gamestates: 
Definition: GamestateManager.h:72
 
bool isActive()
Definition: Host.h:77
 
static std::vector< Host * > instances_s
Definition: Host.h:81
 
bool bIsActive_
Definition: Host.h:82
 
Die Wagnis Klasse hat die folgenden Aufgaben: 
Definition: ApplicationPaths.cc:66
 
#define _NetworkExport
Definition: NetworkPrereqs.h:59
 
const float NETWORK_PERIOD
Definition: Host.h:42
 
static uint32_t clientID_s
Definition: Host.h:80
 
ENet packet structure. 
Definition: enet.h:147
 
Base class of Server and Client This is the Base class of the Server and Client classes. 
Definition: Host.h:52