FastEngine 0.9.5
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::net::NetCommand Class Referenceabstract
Inheritance diagram for fge::net::NetCommand:
fge::net::NetConnectCommand fge::net::NetConnectHandlerCommand fge::net::NetDisconnectCommand fge::net::NetMTUCommand

Public Member Functions

 NetCommand (CommandQueue *commandQueue)
virtual NetCommandTypes getType () const =0
NetCommandResults update (TransmitPacketPtr &buffPacket, IpAddress::Types addressType, Client &client, std::chrono::milliseconds deltaTime)
virtual void onReceive (std::unique_ptr< ProtocolPacket > &packet, IpAddress::Types addressType, Client &client)=0
virtual std::chrono::milliseconds getTimeoutTarget () const

Protected Member Functions

virtual void internalUpdate (TransmitPacketPtr &buffPacket, IpAddress::Types addressType, Client &client, std::chrono::milliseconds deltaTime)=0
virtual NetCommandResults timeout (Client &client)
void resetTimeout ()
void markAsFailed ()
void markAsSucceeded ()

Protected Attributes

CommandQueue * _g_commandQueue {nullptr}

The documentation for this class was generated from the following file: