Class TGameStateManager

Unit

Declaration

type TGameStateManager = class(TStateMachine)

Description

Manages game states.

This class extends TStateMachine adding the needed functionality to manage game states.

See also
TA3DGEApplication.GameState
Manage the current game state.

Hierarchy

Overview

Methods

Public procedure Render;

Properties

Public property Current: TGameState read GetCurrentState write SetCurrentState;
Public property Global: TGameState read GetGlobalState write SetGlobalState;

Description

Methods

Public procedure Render;

Render current game state.

The Global state will be rendered over the Current one.

You don't need to call this as a3dge.Application will do it for you.

Parameters
aSender
The object that does the call. In most cases will be the Application object.
See also
TGameState.Render
Render the game state.

Properties

Public property Current: TGameState read GetCurrentState write SetCurrentState;

Current state.

This state will be updated everytime game tick.

Assigning this property will trigger the execution the Leave and Enter methods of the old and new state in the next game tick.

See also
TGameStateManager.Global
If assigned, it will be executed in every game tick along with Current.
Public property Global: TGameState read GetGlobalState write SetGlobalState;

If assigned, it will be executed in every game tick along with Current.

See also
TGameStateManager.Current
Current state.

Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.