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/Tiles/Tile.cs

41 lines
810 B

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace QwirkleClassLibrary.Tiles
{
public class Tile
{
private readonly Shape shape;
private readonly Color color;
public Tile(Shape sh, Color co)
{
shape = sh;
color = co;
}
public string NameColorTile()
{
return color.ToString() + shape.ToString();
}
public Shape GetShape
{
get { return shape; }
}
public Color GetColor
{
get { return color; }
}
public override string ToString()
{
return color.ToString() + " " + shape.ToString();
}
}
}