Class TGame (unit Game)

Inherits from

TObject

Constructors


constructor Create;

Methods

------------------------------------------------------------------------------



Functions

function CanRemove( Col,Row: Integer ): Boolean;

------------------------------------------------------------------------------

procedure CopySettings( AGame: TGame );

------------------------------------------------------------------------------

destructor Destroy;

------------------------------------------------------------------------------

procedure DropAllCells;

------------------------------------------------------------------------------

function DropCells: Boolean;

------------------------------------------------------------------------------

procedure NewGame( Width, Height: Integer );

------------------------------------------------------------------------------

procedure Redo;

------------------------------------------------------------------------------

procedure Remove( Col,Row: Integer );

------------------------------------------------------------------------------

procedure SetFlags( Col,Row: Integer; Status: TCellFlag );

------------------------------------------------------------------------------

procedure Undo;

------------------------------------------------------------------------------

procedure UpdateMapStats;

------------------------------------------------------------------------------

procedure AttributesChanged;

------------------------------------------------------------------------------

procedure ClearFrameList;

------------------------------------------------------------------------------

procedure ClearUndoneFrames;

------------------------------------------------------------------------------

function GetCanRedo: Boolean;

------------------------------------------------------------------------------

function GetCanUndo: Boolean;

------------------------------------------------------------------------------

function GetCellGroups: Integer;

------------------------------------------------------------------------------

function GetCurrentMap: TGameMap;

------------------------------------------------------------------------------

function GetFlag( X,Y: Integer ):Boolean;

------------------------------------------------------------------------------

function GetLiveCells: Integer;

------------------------------------------------------------------------------

procedure SetHeight( Value: Integer );

------------------------------------------------------------------------------

procedure SetMaxType( Value: TCellType );

------------------------------------------------------------------------------

procedure SetWidth( Value: Integer );

------------------------------------------------------------------------------

Properties

property CanRedo : Boolean


property CanUndo : Boolean


property CellGroups : Integer


property CurrentMap : TGameMap


property Flags : Boolean


property Height : Integer


property LiveCells : Integer


property MaxType : TCellType


property Width : Integer

Properties

Events

Variables

SkipGroupCount : Boolean;


FCurrentFrame : Integer;


FFrameList : TList;


FHeight : Integer;


FMaxType : TCellType;


FWidth : Integer;



Constructors


constructor Create;

Methods

------------------------------------------------------------------------------


Functions


function CanRemove( Col,Row: Integer ): Boolean;

------------------------------------------------------------------------------


procedure CopySettings( AGame: TGame );

------------------------------------------------------------------------------


destructor Destroy;

------------------------------------------------------------------------------


procedure DropAllCells;

------------------------------------------------------------------------------


function DropCells: Boolean;

------------------------------------------------------------------------------


procedure NewGame( Width, Height: Integer );

------------------------------------------------------------------------------


procedure Redo;

------------------------------------------------------------------------------


procedure Remove( Col,Row: Integer );

------------------------------------------------------------------------------


procedure SetFlags( Col,Row: Integer; Status: TCellFlag );

------------------------------------------------------------------------------


procedure Undo;

------------------------------------------------------------------------------


procedure UpdateMapStats;

------------------------------------------------------------------------------


procedure AttributesChanged;

------------------------------------------------------------------------------


procedure ClearFrameList;

------------------------------------------------------------------------------


procedure ClearUndoneFrames;

------------------------------------------------------------------------------


function GetCanRedo: Boolean;

------------------------------------------------------------------------------


function GetCanUndo: Boolean;

------------------------------------------------------------------------------


function GetCellGroups: Integer;

------------------------------------------------------------------------------


function GetCurrentMap: TGameMap;

------------------------------------------------------------------------------


function GetFlag( X,Y: Integer ):Boolean;

------------------------------------------------------------------------------


function GetLiveCells: Integer;

------------------------------------------------------------------------------


procedure SetHeight( Value: Integer );

------------------------------------------------------------------------------


procedure SetMaxType( Value: TCellType );

------------------------------------------------------------------------------


procedure SetWidth( Value: Integer );

------------------------------------------------------------------------------


Properties


property CanRedo : Boolean


property CanUndo : Boolean


property CellGroups : Integer


property CurrentMap : TGameMap


property Flags : Boolean


property Height : Integer


property LiveCells : Integer


property MaxType : TCellType


property Width : Integer

Properties


Events


Variables


SkipGroupCount : Boolean;


FCurrentFrame : Integer;


FFrameList : TList;


FHeight : Integer;


FMaxType : TCellType;


FWidth : Integer;