Skip to main content

WorldCommandDispatcher Class

Abstract dispatcher interface for type-safe WorldCommand handling. More...

Declaration

class helios::engine::runtime::messaging::command::WorldCommandDispatcher { ... }

Derived Classes

classTypedWorldCommandDispatcher<T>

Type-safe dispatcher template for handling specific WorldCommand types. More...

classTypedWorldCommandDispatcher<T>

Type-safe dispatcher template for handling specific WorldCommand types. More...

classTypedWorldCommandDispatcher<T>

Type-safe dispatcher template for handling specific WorldCommand types. More...

Public Destructor Index

~WorldCommandDispatcher ()=default

Virtual destructor for proper cleanup of derived dispatchers. More...

Public Member Functions Index

voiddispatch (helios::engine::runtime::world::GameWorld &gameWorld, const WorldCommand &command)=0

Dispatches a WorldCommand for specialized handling. More...

Description

Abstract dispatcher interface for type-safe WorldCommand handling.

WorldCommandDispatcher enables the Visitor pattern for WorldCommand processing. When registered with a CommandBuffer, the dispatcher receives commands of the appropriate type and can route them to specialized handlers (e.g., managers, pools, or systems).

This decouples command execution from command definition, allowing commands to be processed by external systems without the command knowing about them.

See Also

TypedWorldCommandDispatcher for type-safe derived implementation

See Also

CommandBuffer::addDispatcher for registration

Definition at line 32 of file WorldCommandDispatcher.ixx.

Public Destructor

~WorldCommandDispatcher()

virtual helios::engine::runtime::messaging::command::WorldCommandDispatcher::~WorldCommandDispatcher ()
virtual default

Virtual destructor for proper cleanup of derived dispatchers.

Definition at line 39 of file WorldCommandDispatcher.ixx.

Public Member Functions

dispatch()

virtual void helios::engine::runtime::messaging::command::WorldCommandDispatcher::dispatch (helios::engine::runtime::world::GameWorld & gameWorld, const WorldCommand & command)

Dispatches a WorldCommand for specialized handling.

Parameters
gameWorld

The game world context.

command

The command to dispatch.

Definition at line 47 of file WorldCommandDispatcher.ixx.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.