C# Class ChessDotNet.Move

Show file Open project: ProgramFOX/Chess.NET Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
Move ( Position originalPosition, Position newPosition, Player player )
Move ( Position originalPosition, Position newPosition, Player player, char promotion )
Move ( string originalPosition, string newPosition, Player player )
Move ( string originalPosition, string newPosition, Player player, char promotion )
ToString ( ) : string
operator ( ) : bool

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Move() public method

public Move ( Position originalPosition, Position newPosition, Player player )
originalPosition Position
newPosition Position
player Player

Move() public method

public Move ( Position originalPosition, Position newPosition, Player player, char promotion )
originalPosition Position
newPosition Position
player Player
promotion char

Move() public method

public Move ( string originalPosition, string newPosition, Player player )
originalPosition string
newPosition string
player Player

Move() public method

public Move ( string originalPosition, string newPosition, Player player, char promotion )
originalPosition string
newPosition string
player Player
promotion char

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool