29 lines
438 B
C#
29 lines
438 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace CoopSweeper.GameTypes
|
|
{
|
|
public enum FieldState
|
|
{
|
|
NONE,
|
|
REVEALED,
|
|
QUESTIONMARK,
|
|
FLAG
|
|
}
|
|
|
|
public interface IField
|
|
{
|
|
|
|
bool ContainsBomb { get; set; }
|
|
|
|
int SurroundingBombs { get; set; }
|
|
|
|
int CheckID { get; set; }
|
|
|
|
FieldState State { get; set; }
|
|
|
|
char ToChar();
|
|
}
|
|
}
|