This is the base class for the concrete classes that implement the states of the client. More...
#include "ClientState.hpp"
Public Member Functions | |
virtual | ~ClientStateT () |
The virtual destructor. More... | |
virtual int | GetID () const =0 |
Returns some client-specific, unique ID for this state. More... | |
virtual bool | ProcessInputEvent (const CaKeyboardEventT &KE)=0 |
virtual bool | ProcessInputEvent (const CaMouseEventT &ME)=0 |
virtual void | Render (float FrameTime)=0 |
virtual void | MainLoop (float FrameTime)=0 |
This is the base class for the concrete classes that implement the states of the client.
It is part of the State pattern (see the GoF book) that we employ to manage the states of the client: "It defines the interface for encapsulating the behaviour that is associated with a certain state of the client."
|
inlinevirtual |
The virtual destructor.
|
pure virtual |
Returns some client-specific, unique ID for this state.
Implemented in ClientStateInGameT, ClientStateConnectingT, and ClientStateIdleT.