Class TGameState

Unit

Declaration

type TGameState = class(TState)

Description

Base class for game states.

This class extends the TState class adding rendering capabilities.

See also
TState.Update
Execute state.
TGameState.Render
Render the game state.
TGameState.Enter
Executed when entering the state.
TState.Leave
Clean state after using it.
TA3DGEApplication.GameState
Manage the current game state.
TWorldGameState
A game state that renders the 3D World.
TWorldHUDGameState
A game state that renders the 3D World and a 2D HUD.

Hierarchy

Overview

Methods

Public procedure Enter (aEntity: TObject); override;
Public procedure Render; virtual; abstract;

Description

Methods

Public procedure Enter (aEntity: TObject); override;

Executed when entering the state.

See also
TState.Enter
Prepare the state to be used.
Public procedure Render; virtual; abstract;

Render the game state.

You don't need to call TDisplay.FlipDisplay from this method.

See also
TA3DGEApplication.GameState
Manage the current game state.
TWorld3D.Render
Renders the world.

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