CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::NetworkActionHandler< A > Class Template Reference

#include <CeresEngine/Network/NetworkSystem.hpp>

Inheritance diagram for CeresEngine::NetworkActionHandler< A >:
CeresEngine::EntityActionHandler< NetworkAction< A > > CeresEngine::AbstractActionHandler

Public Member Functions

 NetworkActionHandler (NetworkSystem *system)
 
- Public Member Functions inherited from CeresEngine::EntityActionHandler< NetworkAction< A > >
virtual bool canAct (const Entity &entity, const NetworkAction< A > &action) noexcept
 Checks if the given handler can act on the given action.
 
- Public Member Functions inherited from CeresEngine::AbstractActionHandler
virtual ~AbstractActionHandler ()=default
 Destroys the AbstractActionHandler.
 

Private Member Functions

NetworkAction< A >::ReturnType act (Entity &entity, const NetworkAction< A > &action) final
 Runs an action.
 

Private Attributes

NetworkSystemsystem
 The attached network system.
 

Additional Inherited Members

- Public Types inherited from CeresEngine::EntityActionHandler< NetworkAction< A > >
using Action = NetworkAction< A >
 The action type handled by the handler.
 
using ReturnType = typename A::ReturnType
 The return type required by the action type.
 

Constructor & Destructor Documentation

◆ NetworkActionHandler()

template<typename A >
CeresEngine::NetworkActionHandler< A >::NetworkActionHandler ( NetworkSystem system)
inlineexplicit

Member Function Documentation

◆ act()

template<typename A >
NetworkAction< A >::ReturnType CeresEngine::NetworkActionHandler< A >::act ( Entity entity,
const NetworkAction< A > &  action 
)
finalprivatevirtual

Runs an action.

Parameters
entityThe entity to be acted upon
actionThe action to be ran

Implements CeresEngine::EntityActionHandler< NetworkAction< A > >.

Member Data Documentation

◆ system

The attached network system.


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