Skip to content
This repository was archived by the owner on Nov 16, 2025. It is now read-only.

FiniteStateMachine

ged edited this page Sep 9, 2024 · 12 revisions

Overview

Represents a finite state machine class that manages the transitions and execution of states.

template<class TContext>
class FiniteStateMachine;

Type Parameters

TContext: The type of the context, which holds data or behavior relevant to the state machine.

Definitions

FiniteStateMachine<TContext>::State Represents a state in the finite state machine.
FiniteStateMachine<TContext>(TContext*) Initializes a FiniteStateMachine<TContext> instance.
isInState(FiniteStateMachine<TContext>::State&) Checks if the state machine is currently in the specified state.
transitionTo(FiniteStateMachine<TContext>::State&, bool = false) Transitions the state machine to a specified state.
update() Processes the state state machine's update cycle

Clone this wiki locally