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.
44 lines
897 B
44 lines
897 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 List<Tile> playerTiles;
|
|
|
|
public Player(string name)
|
|
{
|
|
nameTag = name;
|
|
Tiles = new List<Tile>();
|
|
}
|
|
|
|
public string GetNameTag
|
|
{
|
|
get { return nameTag; }
|
|
set { nameTag = value; }
|
|
}
|
|
|
|
public bool IsPlaying { get; set; } = false;
|
|
|
|
public void AddTilePlayer(Tile tile)
|
|
{
|
|
Tiles.Add(tile);
|
|
}
|
|
|
|
public bool RemoveTilePlayer(Tile tile)
|
|
{
|
|
return Tiles.Remove(tile);
|
|
}
|
|
|
|
public List<Tile> Tiles
|
|
{
|
|
get;
|
|
}
|
|
}
|
|
}
|