-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.cs
33 lines (29 loc) · 838 Bytes
/
Player.cs
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
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MonopolyCompanion
{
public class Player : IPlayer
{
public string Name { get; set; }
public int Money { get; set; }
public EnPlayerToken PlayerToken { get; set; }
public List<ICard> Hand { get; set; }
public List<Estate> MortgagedEstates { get; set; }
public bool hasGetOutOfJailCard { get; set; }
public Player(string name, int money)
{
Name = name;
Money = money;
Hand = new List<ICard>();
MortgagedEstates = new List<Estate>();
hasGetOutOfJailCard = false;
}
public override string ToString()
{
return Name;
}
}
}