Classe TChessPosition

Unité

Déclaration

type TChessPosition = class(TObject)

Description

This item has no description.

Hiérarchie

Aperçu

Méthodes

Public constructor Create; overload;
Public constructor Create(const AFENRecord: string); overload;
Public constructor Create(const AData: TPositionData); overload;
Public destructor Destroy; override;
Public function FENRecord(const AFrc: boolean = TRUE): string;
Public procedure GenerateMoves1(const AColor: TPieceColor);
Public procedure GenerateMoves2(const AColor: TPieceColor);
Public procedure GenerateMoves3(const AColor: TPieceColor);
Public procedure GenerateCastlingMove(const ACastling: TCastling);
Public function IsCheck(const AColor: TPieceColor): boolean;
Public function IsCastlingCheck(const ACastling: TCastling): boolean;
Public procedure SetVariables(const AShort: boolean);
Public procedure DoMove(const AMove: TMove; const APromo: TPieceType = ptQueen);
Public procedure SetActiveColor(const AColor: TPieceColor);
Public function ToStr(): string;

Propriétés

Public property Data: TPositionData read FData;
Public property List: TMoveList read FList;
Public property Active: TPieceColor read FData.FActive write SetActiveColor;
Public property Check: boolean read FCheck;
Public property KingCheckedX: integer read FKingCheckedX;
Public property KingCheckedY: integer read FKingCheckedY;

Description

Méthodes

Public constructor Create; overload;

This item has no description.

Public constructor Create(const AFENRecord: string); overload;

This item has no description.

Public constructor Create(const AData: TPositionData); overload;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public function FENRecord(const AFrc: boolean = TRUE): string;

This item has no description.

Public procedure GenerateMoves1(const AColor: TPieceColor);

This item has no description.

Public procedure GenerateMoves2(const AColor: TPieceColor);

This item has no description.

Public procedure GenerateMoves3(const AColor: TPieceColor);

This item has no description.

Public procedure GenerateCastlingMove(const ACastling: TCastling);

This item has no description.

Public function IsCheck(const AColor: TPieceColor): boolean;

This item has no description.

Public function IsCastlingCheck(const ACastling: TCastling): boolean;

This item has no description.

Public procedure SetVariables(const AShort: boolean);

Procédure pour savoir si le joueur est en échec et s'il est empêché de roquer.

Public procedure DoMove(const AMove: TMove; const APromo: TPieceType = ptQueen);

This item has no description.

Public procedure SetActiveColor(const AColor: TPieceColor);

This item has no description.

Public function ToStr(): string;

This item has no description.

Propriétés

Public property Data: TPositionData read FData;

This item has no description.

Public property List: TMoveList read FList;

This item has no description.

Public property Active: TPieceColor read FData.FActive write SetActiveColor;

This item has no description.

Public property Check: boolean read FCheck;

This item has no description.

Public property KingCheckedX: integer read FKingCheckedX;

This item has no description.

Public property KingCheckedY: integer read FKingCheckedY;

This item has no description.


Produit par PasDoc 1.0.4.