TcadMatch3Game Class

Definition

Delphi
type TcadMatch3Game = class(TFrame)
Inheritance
TFrame
TcadMatch3Game

Constructors

Create(TComponent)

Constructor of an instance of this class

Destroy

Destructor of current instance

Properties

BackgroundColor

Color of the game layout background

EnableMoveLines

Enable to move a column or row instead of swapping two adjacent cells.

EnableSwapTiles

Enable the exchange of two adjacent cells : clic on first and move to the other or clic on both.

Grid[Byte, Byte]

Access to the CellType of grid cells

NbCol
NbMaxDifferentTiles

Used to choice what tiles can be added to the game grid

NbRow
OnMatch3Event

Event called if a match-3 happened and if it's assigned.

OnMatch3Proc

Anonymous code called if a match-3 happened and if it's assigned.

OnMoveButNoMatch3Event

Event called if the player moved but no match-3 happened and if it's assigned.

OnMoveButNoMatch3Proc

Anonymous code called if the player moved but no match-3 happened and if it's assigned.

SVGItems[Integer]
SelectedBackgroundColor

Color of the background for selected tiles or lines (depending on the game mode and what will be moved)

UseMatchDirection

Contains the direction used to move the cells and fill the grid after a match-3

Methods

Fields