40 lines
944 B
C#
40 lines
944 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Drawing;
|
|
|
|
namespace NonoGramme
|
|
{
|
|
internal class Tile
|
|
{
|
|
/*
|
|
* Empty means a tile that is empty
|
|
* Full is an empty tile wich the user has colored
|
|
* Undiscovered is a tile wich is secretely a good one
|
|
* Discovered is a good tile that the user has colored
|
|
*/
|
|
public enum State
|
|
{
|
|
Empty,
|
|
Full,
|
|
Undiscovered,
|
|
Discovered
|
|
}
|
|
|
|
private State _currentState;
|
|
|
|
public State CurrentState { get => _currentState; set => _currentState = value; }
|
|
|
|
public Tile(State currentState)
|
|
{
|
|
CurrentState = currentState;
|
|
}
|
|
public Tile():this(State.Empty)
|
|
{
|
|
//Empty, just here to let people create default tiles
|
|
}
|
|
}
|
|
}
|