Class TTitleGameState

Unit

Declaration

type TTitleGameState = class(TGameState)

Description

A simple title screen.

To use it, assign the object to the state machine (TA3DGEApplication.GameState. Then assing the bitmap to TTitleGameState.Bitmap and the TTitleGameState.PlayGameState name.

Note that this state will disable the OpenGL context and will use orthographic projection.

The default name of this state is TitleGameState.

Hierarchy

Overview

Methods

Public constructor Create; override;
Public destructor Destroy; override;
Public procedure Enter (aEntity: TObject); override;
Public procedure Update (aEntity: TObject); override;
Public procedure Render; override;

Properties

Public property Bitmap: ALLEGRO_BITMAPptr read fTitleBitmap write SetBitmap;
Public property OwnsBitmap: Boolean read fOwnsBitmap write fOwnsBitmap;
Public property PlayGameState: AnsiString read fPlayGameState write fPlayGameState;

Description

Methods

Public constructor Create; override;

Constructor.

Public destructor Destroy; override;

Destructor.

Public procedure Enter (aEntity: TObject); override;

Enters the game state.

Public procedure Update (aEntity: TObject); override;

Update the title screen.

Public procedure Render; override;

Render the title screen.

Properties

Public property Bitmap: ALLEGRO_BITMAPptr read fTitleBitmap write SetBitmap;

Bitmap used to render the title screen.

Public property OwnsBitmap: Boolean read fOwnsBitmap write fOwnsBitmap;

Does the state owns the bitmap. Default is False.

Public property PlayGameState: AnsiString read fPlayGameState write fPlayGameState;

State that plays the game.


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