From 9781acbe5fc996ec5f880f1a9cd44b69086ab3f0 Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Fri, 25 May 2018 09:31:09 +0200 Subject: [PATCH] added some base types --- CoopSweeper/CoopSweeper.csproj | 4 ++++ CoopSweeper/GameTypes/Field.cs | 14 ++++++++++++++ CoopSweeper/GameTypes/Game.cs | 10 ++++++++++ CoopSweeper/GameTypes/IField.cs | 18 ++++++++++++++++++ CoopSweeper/GameTypes/IGame.cs | 10 ++++++++++ 5 files changed, 56 insertions(+) create mode 100644 CoopSweeper/GameTypes/Field.cs create mode 100644 CoopSweeper/GameTypes/Game.cs create mode 100644 CoopSweeper/GameTypes/IField.cs create mode 100644 CoopSweeper/GameTypes/IGame.cs diff --git a/CoopSweeper/CoopSweeper.csproj b/CoopSweeper/CoopSweeper.csproj index ce1697a..2ecb5a3 100644 --- a/CoopSweeper/CoopSweeper.csproj +++ b/CoopSweeper/CoopSweeper.csproj @@ -5,4 +5,8 @@ netcoreapp2.0 + + + + diff --git a/CoopSweeper/GameTypes/Field.cs b/CoopSweeper/GameTypes/Field.cs new file mode 100644 index 0000000..01aba62 --- /dev/null +++ b/CoopSweeper/GameTypes/Field.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CoopSweeper.GameTypes +{ + + class Field : IField + { + public bool ContainsBomb { get; set; } + + public FieldState State { get; set;} + } +} diff --git a/CoopSweeper/GameTypes/Game.cs b/CoopSweeper/GameTypes/Game.cs new file mode 100644 index 0000000..fe63691 --- /dev/null +++ b/CoopSweeper/GameTypes/Game.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CoopSweeper.GameTypes +{ + class Game + { + } +} diff --git a/CoopSweeper/GameTypes/IField.cs b/CoopSweeper/GameTypes/IField.cs new file mode 100644 index 0000000..87eb58a --- /dev/null +++ b/CoopSweeper/GameTypes/IField.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CoopSweeper.GameTypes +{ + enum FieldState + { + NONE, + REVEALED, + QUESTIONMARK, + FLAG + } + + public interface IField + { + } +} diff --git a/CoopSweeper/GameTypes/IGame.cs b/CoopSweeper/GameTypes/IGame.cs new file mode 100644 index 0000000..ec8e0be --- /dev/null +++ b/CoopSweeper/GameTypes/IGame.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CoopSweeper.GameTypes +{ + interface IGame + { + } +}