mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Adding Chess * Updating chess rankings * more rank updates * Reverting pieces to default size / improving movement
34 lines
933 B
C#
34 lines
933 B
C#
using ACE.Entity.Enum;
|
|
|
|
namespace ACE.Server.Entity.Chess
|
|
{
|
|
public class ChessDelayedAction
|
|
{
|
|
public ChessDelayedActionType Action;
|
|
public ChessColor Color;
|
|
public ChessPieceCoord From;
|
|
public ChessPieceCoord To;
|
|
public bool Stalemate;
|
|
|
|
public ChessDelayedAction(ChessDelayedActionType action)
|
|
{
|
|
Action = action;
|
|
}
|
|
|
|
public ChessDelayedAction(ChessDelayedActionType action, ChessColor color, bool stalemate = false)
|
|
{
|
|
Action = action;
|
|
Color = color;
|
|
Stalemate = stalemate;
|
|
}
|
|
|
|
public ChessDelayedAction(ChessDelayedActionType action, ChessColor color, ChessPieceCoord from, ChessPieceCoord to, bool stalemate = false)
|
|
{
|
|
Action = action;
|
|
Color = color;
|
|
From = from;
|
|
To = to;
|
|
Stalemate = stalemate;
|
|
}
|
|
}
|
|
}
|