Cafu Engine
ClientStateT Class Referenceabstract

This is the base class for the concrete classes that implement the states of the client. More...

#include "ClientState.hpp"

Inheritance diagram for ClientStateT:

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
 

Detailed Description

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."

Constructor & Destructor Documentation

virtual ClientStateT::~ClientStateT ( )
inlinevirtual

The virtual destructor.

Member Function Documentation

virtual int ClientStateT::GetID ( ) const
pure virtual

Returns some client-specific, unique ID for this state.

Implemented in ClientStateInGameT, ClientStateConnectingT, and ClientStateIdleT.


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