TBidiooGameData Class

Definition

Delphi
type TBidiooGameData = class(TGameData)
Inheritance
TObject
TBidiooGameData

Constructors

Create

Used to create a new instance of this class. It's better to use TGameData.DefaultGameData if you don't need to manage complex things on your game data.

Destroy

Never call it, use only "Free" or "FreeAndNil" if you called the Create() method to get a new instance of this game.

(Inherited from TGameData)

Properties

ColCount
FileName

The FileName for this game (no path, no extension) if opened by LoadFromFile(WithAName) or it has been saved by SaveToFile(WithAName)

(Inherited from TGameData)
HasChanged

Returns True if a game parameter has changed since last Clear(), LoadXXX() or SaveXXX()

(Inherited from TGameData)
IsPaused

Returns True after a load() or a pausegame() Returns False after a Clear()

(Inherited from TGameData)
IsPlaying

Returns True after a StartANewGame() or ContinueGame() Returns False after a PauseGame() or StopGame()

(Inherited from TGameData)
Level

It's the current player level

(Inherited from TGameData)
NbLives

It's the current player lives number level

(Inherited from TGameData)
Path

Path to the folder where games will be saved

(Inherited from TGameData)
RowCount
Score

It's the current player score

(Inherited from TGameData)
UserPseudo

It's the current player pseudo (if it has been asked)

(Inherited from TGameData)

Methods

Clear

Used to clean current instance and reset all properties and fields to their default values

ContinueGame

Start the game without clearing the game data before Use it to continue a game after a pause or loading it

(Inherited from TGameData)
Current
DefaultGameData<T>

Get the instance of current game data as a T instance.

(Inherited from TGameData)
GameGridToScreenGrid(TcadMatch3Game)
GetFilePath
InitGameGrid
Load
LoadFromFile(string)

Used to load the game data from a file after clearing the instance.

(Inherited from TGameData)
LoadFromStream(TStream)

Used to load the game data from a stream.

PauseGame

Call it when you pause (stop temporary) a game and want to continue it in the future

SaveToFile(string)

Used to save current game data to a file

(Inherited from TGameData)
SaveToStream(TStream)

Used to save current game data to a stream

ScreenGridToGameGrid(TcadMatch3Game)
StartANewGame

Start the game after clearing the game data

(Inherited from TGameData)
StopGame

Call it when you stop a game

Fields

FHasChanged (Inherited from TGameData)
FIsPaused (Inherited from TGameData)
FIsPlaying (Inherited from TGameData)
FPath (Inherited from TGameData)