Skip to main content

TypedStateCommandHandler Class Template

Typed interface for handling state commands. More...

Declaration

template <typename StateType> class helios::engine::state::TypedStateCommandHandler<StateType> { ... }

Base class

classStateCommandHandler

Abstract base for type-erased state command handling. More...

Public Member Functions Index

template <typename StateType>
boolsubmit (const helios::engine::state::commands::StateCommand< StateType > &gameStateCommand) noexcept=0

Submits a state command for processing. More...

Description

Typed interface for handling state commands.

Extends StateCommandHandler with type-safe submit method for a specific state type. StateManager implements this interface.

Template Parameters
StateType

The state enum type.

See Also

StateCommandHandler

See Also

StateManager

See Also

StateCommand

Definition at line 28 of file TypedStateCommandHandler.ixx.

Public Member Functions

submit()

template <typename StateType>
virtual bool helios::engine::state::TypedStateCommandHandler< StateType >::submit (const helios::engine::state::commands::StateCommand< StateType > & gameStateCommand)
noexcept

Submits a state command for processing.

Parameters
gameStateCommand

The command to submit.

Returns

True if the command was accepted.

Definition at line 39 of file TypedStateCommandHandler.ixx.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.