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

46 lines
993 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> tiles;
private bool isPlaying = false;
public Player(string name)
{
nameTag = name;
tiles = new List<Tile>();
}
public string GetNameTag
{
get { return nameTag; }
}
public bool IsPlaying
{
get { return isPlaying; }
set { isPlaying = value; }
}
public void AddTilePlayer(Tile tile)
{
tiles.Add(tile);
}
public bool RemoveTilePlayer(Tile tile)
{
return tiles.Remove(tile);
}
public List<Tile> Tiles // Rajouter un "get" là
{
get{ return tiles; }
}
}
}