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.
42 lines
992 B
42 lines
992 B
using QwirkleClassLibrary;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace QwirkleClassLibrary
|
|
{
|
|
public class Tile
|
|
{
|
|
private readonly Shape shape;
|
|
private readonly Color color;
|
|
public Tile(Shape sh, Color co)
|
|
{
|
|
shape = sh;
|
|
color = co;
|
|
//Console.WriteLine("A tile of shape " + shape + " and color " + color + " has been created.");
|
|
}
|
|
|
|
public string NameColorTile()
|
|
{
|
|
return color.ToString() + shape.ToString();
|
|
}
|
|
|
|
public Shape GetShape
|
|
{
|
|
get { return this.shape; }
|
|
}
|
|
|
|
public Color GetColor
|
|
{
|
|
get { return this.color; }
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return color.ToString() + shape.ToString();
|
|
}
|
|
}
|
|
} |