From a03813e2c2afa39309f8344068510cbe5df5a4b5 Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Fri, 25 May 2018 10:09:32 +0200 Subject: [PATCH] updated Field --- CoopSweeper/GameTypes/Field.cs | 7 ++++++- CoopSweeper/GameTypes/IField.cs | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CoopSweeper/GameTypes/Field.cs b/CoopSweeper/GameTypes/Field.cs index 36d1e56..ac69500 100644 --- a/CoopSweeper/GameTypes/Field.cs +++ b/CoopSweeper/GameTypes/Field.cs @@ -14,6 +14,11 @@ namespace CoopSweeper.GameTypes public bool ContainsBomb { get; set; } - public FieldState State { get; set; } + public FieldState State { get; set; } + + public char ToChar() + { + throw new NotImplementedException(); + } } } diff --git a/CoopSweeper/GameTypes/IField.cs b/CoopSweeper/GameTypes/IField.cs index 87eb58a..ff1e1eb 100644 --- a/CoopSweeper/GameTypes/IField.cs +++ b/CoopSweeper/GameTypes/IField.cs @@ -4,7 +4,7 @@ using System.Text; namespace CoopSweeper.GameTypes { - enum FieldState + public enum FieldState { NONE, REVEALED, @@ -14,5 +14,11 @@ namespace CoopSweeper.GameTypes public interface IField { + + bool ContainsBomb { get; set; } + + FieldState State { get; set; } + + char ToChar(); } }