yep
This commit is contained in:
34
Shogi.Domain/ValueObjects/Enums.cs
Normal file
34
Shogi.Domain/ValueObjects/Enums.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace Shogi.Domain.ValueObjects;
|
||||
|
||||
[Flags]
|
||||
internal enum InCheckResult
|
||||
{
|
||||
NobodyInCheck = 1, // This kinda doesn't make sense from a Flags perspective, but it works. =/
|
||||
Player1InCheck = 2,
|
||||
Player2InCheck = 4
|
||||
}
|
||||
|
||||
internal enum GameOverResult
|
||||
{
|
||||
GameIsNotOver,
|
||||
Player1Wins,
|
||||
Player2Wins
|
||||
}
|
||||
|
||||
public enum WhichPiece
|
||||
{
|
||||
King,
|
||||
GoldGeneral,
|
||||
SilverGeneral,
|
||||
//PromotedSilverGeneral,
|
||||
Bishop,
|
||||
//PromotedBishop,
|
||||
Rook,
|
||||
//PromotedRook,
|
||||
Knight,
|
||||
//PromotedKnight,
|
||||
Lance,
|
||||
//PromotedLance,
|
||||
Pawn,
|
||||
//PromotedPawn,
|
||||
}
|
||||
Reference in New Issue
Block a user