|
|
|
@ -0,0 +1,43 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace QwirkleClassLibrary
|
|
|
|
|
{
|
|
|
|
|
public class Player
|
|
|
|
|
{
|
|
|
|
|
private string nameTag;
|
|
|
|
|
|
|
|
|
|
private bool isPlaying = false;
|
|
|
|
|
|
|
|
|
|
public Player(string name)
|
|
|
|
|
{
|
|
|
|
|
nameTag = name;
|
|
|
|
|
if(isPlaying == false)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Player created. Name : " + nameTag + ", Turn to play : No\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else Console.WriteLine("Player created. Name : " + nameTag + ", Turn to play : Yes\n");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string getName
|
|
|
|
|
{
|
|
|
|
|
get { return nameTag; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool getIsPlaying
|
|
|
|
|
{
|
|
|
|
|
get { return isPlaying; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsPlaying(bool isPlaying)
|
|
|
|
|
{
|
|
|
|
|
this.isPlaying = isPlaying;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|