78 virtual bool establishConnection()
override;
79 void setDestination(
const std::string& serverAddress,
unsigned int port );
80 virtual bool closeConnection()
override;
81 virtual void queuePacket(
ENetPacket* packet,
int clientID, uint8_t channelID)
override;
83 virtual void doSendChat(
const std::string&
message,
unsigned int sourceID,
unsigned int targetID)
override;
84 virtual void doReceiveChat(
const std::string& message,
unsigned int sourceID,
unsigned int targetID)
override;
85 virtual void printRTT()
override;
87 void update(
const Clock& time);
89 virtual void connectionClosed()
override;
bool gameStateFailure_
Definition: Client.h:99
std::deque< packet::Packet * > packetQueue_
Definition: Client.h:97
static Client * getInstance()
Definition: Client.h:76
float timeSinceLastUpdate_
Definition: Client.h:100
Shared library macros, enums, constants and forward declarations for the network library ...
::std::string string
Definition: gtest-port.h:756
static Client * singletonPtr_s
Definition: Client.h:95
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
Client *client; The network/Client class This class implements all necessary function for the network...
Definition: Client.h:68
virtual bool sendPacket(packet::Packet *packet) override
Definition: Client.h:82
Base for singleton classes.
Definition: Singleton.h:114
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _NetworkExport
Definition: NetworkPrereqs.h:59
Shared library macros, enums, constants and forward declarations for the util library ...
virtual bool send(orxonox::Host *host)
Send the Packet.
Definition: Packet.cc:135
Definition of the Singleton template that is used as base class for classes that allow only one insta...
bool isSynched_
Definition: Client.h:96
virtual bool isServer_() override
Definition: Client.h:92
Simple real time clock based on Ogre::Timer.
Definition: Clock.h:57
Definition: ClientConnection.h:38
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