-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameplayScreenState.cs
More file actions
32 lines (25 loc) · 930 Bytes
/
GameplayScreenState.cs
File metadata and controls
32 lines (25 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Collections.Generic;
namespace ShogiClient
{
/// <summary>
/// The state for the GameplayScreen
/// </summary>
public class GameplayScreenState : ScreenState
{
public PlayerData CurrentPlayer => IsPlayerOneTurn ? PlayerOne : PlayerTwo;
public PlayerData OpponentPlayer => IsPlayerOneTurn ? PlayerTwo : PlayerOne;
private bool isPlayerOneTurn = true;
public bool IsPlayerOneTurn
{
get => Game1.DEBUG_PLAYERONE ? true : isPlayerOneTurn;
set => isPlayerOneTurn = value;
}
public bool IsCheck = false;
public bool IsCheckMate = false;
public PlayerData PlayerOne = new PlayerData();
public PlayerData PlayerTwo = new PlayerData();
public Board BoardState = new Board(9, 9);
public List<ITurn> TurnList = new List<ITurn>();
public bool clockRunning = false;
}
}