before deleting Rules
This commit is contained in:
27
Gameboard.ShogiUI.Rules/Move.cs
Normal file
27
Gameboard.ShogiUI.Rules/Move.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Diagnostics;
|
||||
using System.Numerics;
|
||||
|
||||
namespace Gameboard.ShogiUI.Rules
|
||||
{
|
||||
[DebuggerDisplay("{From} - {To}")]
|
||||
public class Move
|
||||
{
|
||||
public WhichPiece? PieceFromHand { get; }
|
||||
public Vector2? From { get; }
|
||||
public Vector2 To { get; }
|
||||
public bool IsPromotion { get; }
|
||||
|
||||
public Move(Vector2 from, Vector2 to, bool isPromotion)
|
||||
{
|
||||
From = from;
|
||||
To = to;
|
||||
IsPromotion = isPromotion;
|
||||
}
|
||||
|
||||
public Move(WhichPiece pieceFromHand, Vector2 to)
|
||||
{
|
||||
PieceFromHand = pieceFromHand;
|
||||
To = to;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user