-
Notifications
You must be signed in to change notification settings - Fork 0
/
User.cs
43 lines (37 loc) · 930 Bytes
/
User.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
34
35
36
37
38
39
40
41
42
43
using System.Drawing;
namespace othello
{
public class User
{
public enum UserOption
{
Human,
Computer,
}
private readonly UserOption m_UserType;
private eCoinColor m_CoinColor;
private string m_Name;
/*get set*/
public eCoinColor CoinColor
{
get { return m_CoinColor; }
set { m_CoinColor = value; }
}
public string Name
{
get { return m_Name; }
set { m_Name = value; }
}
public UserOption UserType
{
get { return m_UserType; }
}
/*ctor*/
public User(UserOption i_UserType, eCoinColor i_CoinColor, string i_Name)
{
m_Name = i_Name;
CoinColor = i_CoinColor;
m_UserType = i_UserType;
}
}
}