tec::Controller
#include <fps-controller.hpp>
Inherited by tec::FPSController
Public Functions
Name | |
---|---|
Controller(eid entity_id) | |
virtual void | Update(double , GameState & , EventList & ) |
virtual | ~Controller() =default |
virtual proto::ClientCommands | GetClientCommands() =0 |
virtual void | ApplyClientCommands(proto::ClientCommands ) =0 |
virtual void | SetFocus(bool keyboard, bool mouse) called to indicate focus has been restored to controller |
virtual void | ClearFocus(bool keyboard, bool mouse) called to indicate focus has been captured from controller |
Public Attributes
Name | |
---|---|
eid | entity_id |
bool | keyboard_focus |
bool | mouse_focus |
Public Functions Documentation
function Controller
inline Controller(
eid entity_id
)
function Update
inline virtual void Update(
double ,
GameState & ,
EventList &
)
Reimplemented by: tec::FPSController::Update
function ~Controller
virtual ~Controller() =default
function GetClientCommands
virtual proto::ClientCommands GetClientCommands() =0
Reimplemented by: tec::FPSController::GetClientCommands
function ApplyClientCommands
virtual void ApplyClientCommands(
proto::ClientCommands
) =0
Reimplemented by: tec::FPSController::ApplyClientCommands
function SetFocus
inline virtual void SetFocus(
bool keyboard,
bool mouse
)
called to indicate focus has been restored to controller
function ClearFocus
inline virtual void ClearFocus(
bool keyboard,
bool mouse
)
called to indicate focus has been captured from controller
Public Attributes Documentation
variable entity_id
eid entity_id;
variable keyboard_focus
bool keyboard_focus = true;
variable mouse_focus
bool mouse_focus = true;
Updated on 2022-07-24 at 19:27:35 +0000