TOkDuckyGameData Class

Unit: uOkDuckyGameData
System.TObject
  uGameData.TGameData
    uOkDuckyGameData.TOkDuckyGameData
type TOkDuckyGameData = class(tgamedata)

The TOkDuckyGameData type exposes the following members.

Show:
 NameDescription
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. (Overrides uGameData.TGameData.Create .)

Top
Show:
 NameDescription
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 uGameData.TGameData .)

HasChanged

Returns True if a game parameter has changed since last Clear(), LoadXXX() or SaveXXX() (Inherited from uGameData.TGameData .)

IsPaused

Returns True after a load() or a pausegame() Returns False after a Clear() (Inherited from uGameData.TGameData .)

IsPlaying

Returns True after a StartANewGame() or ContinueGame() Returns False after a PauseGame() or StopGame() (Inherited from uGameData.TGameData .)

Level

It's the current player level (Inherited from uGameData.TGameData .)

NbBullets

NbLives

It's the current player lives number level (Inherited from uGameData.TGameData .)

Path

Path to the folder where games will be saved (Inherited from uGameData.TGameData .)

Score

It's the current player score (Inherited from uGameData.TGameData .)

UserPseudo

It's the current player pseudo (if it has been asked) (Inherited from uGameData.TGameData .)

Top
Show:
 NameDescription
Clear

Used to clean current instance and reset all properties and fields to their default values (Overrides uGameData.TGameData.Clear .)

Current

DefaultGameData

Get the instance of default game data. In most cases it's better to use it than creating a new instance If you work on a descendnt of TGameData, don't call this method, create your own or use the constructor. (Overrides uGameData.TGameData.DefaultGameData .)

InitGameScreen

LoadFromStream

Used to load the game data from a stream. (Overrides uGameData.TGameData.LoadFromStream .)

SaveToStream

Used to save current game data to a stream (Overrides uGameData.TGameData.SaveToStream .)

Top
Show:
 NameDescription
FHasChanged

(Inherited from uGameData.TGameData .)

FIsPaused

(Inherited from uGameData.TGameData .)

FIsPlaying

(Inherited from uGameData.TGameData .)

FPath

(Inherited from uGameData.TGameData .)

Top