|
| Server () |
| Constructor for default values (bindaddress is set to ENET_HOST_ANY. More...
|
|
| Server (int port) |
| Constructor. More...
|
|
| Server (int port, const std::string &bindAddress) |
| Constructor. More...
|
|
| ~Server () |
| Destructor. More...
|
|
void | close () |
| This function closes the server. More...
|
|
int | getClientCount () |
|
std::string | getServerName () |
|
void | open () |
| This function opens the server by creating the listener thread. More...
|
|
virtual void | printRTT () override |
| Print ping time to client in milliseconds. More...
|
|
virtual void | queuePacket (ENetPacket *packet, int clientID, uint8_t channelID) override |
|
virtual bool | sendPacket (packet::Packet *packet) override |
|
void | update (const Clock &time) |
| Run this function once every tick calls processQueue and updateGamestate. More...
|
|
bool | isActive () |
|
| GamestateManager () |
|
| ~GamestateManager () |
|
virtual bool | ackGamestate (unsigned int gamestateID, unsigned int peerID) override |
| Acknowledge a received gamestate. More...
|
|
virtual bool | addGamestate (packet::Gamestate *gs, unsigned int peerID) override |
|
void | addPeer (uint32_t peerID) |
| Add a peer to the game. More...
|
|
void | finishGamestate (unsigned int peerID, packet::Gamestate *&destgamestate, packet::Gamestate *base, packet::Gamestate *gamestate) |
|
virtual uint32_t | getCurrentGamestateID () override |
|
std::vector< packet::Gamestate * > | getGamestates () |
| Return a vector with the gamestates of all peers. More...
|
|
virtual uint32_t | getLastReceivedGamestateID (unsigned int peerID) override |
| Return the ID of the last received gamestate for a certain peer. More...
|
|
bool | getSnapshot () |
| Update the current gamestate. More...
|
|
bool | hasPeers () |
|
bool | processGamestates () |
| Process the queued gamestates. More...
|
|
void | removePeer (uint32_t peerID) |
| Remove a peer from the game. More...
|
|
bool | sendAck (unsigned int gamestateID, uint32_t peerID) |
| Send Acknowledgement packet. More...
|
|
void | setSynched (uint32_t peerID) |
|
bool | update () |
|
| ~ServerConnection () |
| Destructor. More...
|
|
void | addPacket (ENetPacket *packet, unsigned int ID, uint8_t channelID) |
| Add outgoing packet to queue. More...
|
|
bool | closeListener () |
| Stop listening. More...
|
|
void | disconnectClient (int clientID) |
| Terminate connection with a peer. More...
|
|
bool | openListener () |
|
void | setBindAddress (const std::string &bindAddress) |
| Set address on which to listen. More...
|
|
void | setPort (unsigned int port) |
| Set port on which to listen on. More...
|
|
virtual | ~Connection () |
| Destructor. More...
|
|
| LANDiscoverable () |
|
virtual | ~LANDiscoverable () |
|
void | setActivity (bool bActive) |
|
void | setConfigValues () |
| Function used for the configuration file parameter update. More...
|
|
void | update () |
|
void | updateClientNumber (int clientNumber) |
|
| Configurable () |
|
void | setConfigValues () |
| Function to collect the SetConfigValue-macro calls. More...
|
|
| Listable () |
| Constructor: Allocates space in the element list. More...
|
|
| Listable (Context *context) |
| Constructor: Allocates space in the element list and assigns the context. More...
|
|
virtual | ~Listable () |
| Destructor: Removes the object from the object-lists. More...
|
|
Context * | getContext () const |
|
void | setContext (Context *context) |
| Changes the context. More...
|
|
void | unregisterObject () |
| Removes this object from the object-lists. More...
|
|
| Identifiable () |
| Constructor: Sets the default values. More...
|
|
virtual | ~Identifiable () |
|
ORX_FORCEINLINE void * | getDerivedPointer (unsigned int classID) |
| Returns a valid pointer of any derived type that is registered in the class hierarchy. More...
|
|
template<class T > |
ORX_FORCEINLINE T * | getDerivedPointer (unsigned int classID) |
| Version of getDerivedPointer with template. More...
|
|
template<class T > |
ORX_FORCEINLINE const T * | getDerivedPointer (unsigned int classID) const |
| Const version of getDerivedPointer with template. More...
|
|
Identifier * | getIdentifier () const |
| Returns the Identifier of the object. More...
|
|
bool | isA (const Identifier *identifier) |
| Returns true if the object's class is of the given type or a derivative. More...
|
|
template<class B > |
bool | isA (const SubclassIdentifier< B > *identifier) |
| Returns true if the object's class is of the given type or a derivative. More...
|
|
bool | isA (const Identifiable *object) |
| Returns true if the object's class is of the given type or a derivative. More...
|
|
bool | isChildOf (const Identifier *identifier) |
| Returns true if the object's class is a child of the given type. More...
|
|
template<class B > |
bool | isChildOf (const SubclassIdentifier< B > *identifier) |
| Returns true if the object's class is a child of the given type. More...
|
|
bool | isChildOf (const Identifiable *object) |
| Returns true if the object's class is a child of the given type. More...
|
|
bool | isDirectChildOf (const Identifier *identifier) |
| Returns true if the object's class is a direct child of the given type. More...
|
|
template<class B > |
bool | isDirectChildOf (const SubclassIdentifier< B > *identifier) |
| Returns true if the object's class is a direct child of the given type. More...
|
|
bool | isDirectChildOf (const Identifiable *object) |
| Returns true if the object's class is a direct child of the given type. More...
|
|
bool | isDirectParentOf (const Identifier *identifier) |
| Returns true if the object's class is a direct parent of the given type. More...
|
|
template<class B > |
bool | isDirectParentOf (const SubclassIdentifier< B > *identifier) |
| Returns true if the object's class is a direct parent of the given type. More...
|
|
bool | isDirectParentOf (const Identifiable *object) |
| Returns true if the object's class is a direct child of the given type. More...
|
|
bool | isExactlyA (const Identifier *identifier) |
| Returns true if the object's class is exactly of the given type. More...
|
|
template<class B > |
bool | isExactlyA (const SubclassIdentifier< B > *identifier) |
| Returns true if the object's class is exactly of the given type. More...
|
|
bool | isExactlyA (const Identifiable *object) |
| Returns true if the object's class is exactly of the given type. More...
|
|
bool | isParentOf (const Identifier *identifier) |
| Returns true if the object's class is a parent of the given type. More...
|
|
template<class B > |
bool | isParentOf (const SubclassIdentifier< B > *identifier) |
| Returns true if the object's class is a parent of the given type. More...
|
|
bool | isParentOf (const Identifiable *object) |
| Returns true if the object's class is a parent of the given type. More...
|
|
| WANDiscoverable () |
| constructor More...
|
|
| ~WANDiscoverable () |
| destructor More...
|
|
std::string | getMSAddress () |
|
void | setActivity (bool bActive) |
| Function used to set the activity/discoverability. More...
|
|
void | setConfigValues () |
| Function used for the configuration file parameter update. More...
|
|
void | updateClientNumber (int clientNumber) |
|
This class is the root class of the network module for a server.
It implements all functions necessary for a Server