You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sae201_qwirkle/Qwirkle/QwirkleClassLibrary/Player.cs

44 lines
944 B

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;
}
}
}