From 56da0501e766bce39f13dba2d4684bff45857865 Mon Sep 17 00:00:00 2001 From: Lee Richardson Date: Wed, 24 Jan 2018 21:03:54 +0000 Subject: [PATCH] Creates (temporary) public constructors for Features --- Sharpasonne.Models/Features/City.cs | 10 ++++++++-- Sharpasonne.Models/Features/Field.cs | 4 ++-- Sharpasonne.Models/Features/Monastery.cs | 8 ++++++-- Sharpasonne.Models/Features/Road.cs | 8 ++++++-- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/Sharpasonne.Models/Features/City.cs b/Sharpasonne.Models/Features/City.cs index e91e36e..bbec6c6 100644 --- a/Sharpasonne.Models/Features/City.cs +++ b/Sharpasonne.Models/Features/City.cs @@ -2,10 +2,16 @@ namespace Sharpasonne.Models.Features { - class City : IFeature + public class City : IFeature { public IImmutableSet Connections { get; } + public bool HasShield { get; } + + public City(IImmutableSet connections, bool hasShield) + { + Connections = connections; + HasShield = hasShield; + } } } - diff --git a/Sharpasonne.Models/Features/Field.cs b/Sharpasonne.Models/Features/Field.cs index 3a20d8d..effa7fb 100644 --- a/Sharpasonne.Models/Features/Field.cs +++ b/Sharpasonne.Models/Features/Field.cs @@ -4,12 +4,12 @@ namespace Sharpasonne.Models.Features { public class Field : IFeature { + public IImmutableSet Connections { get; } + public Field(IImmutableSet connections) { Connections = connections; } - - public IImmutableSet Connections { get; } } } diff --git a/Sharpasonne.Models/Features/Monastery.cs b/Sharpasonne.Models/Features/Monastery.cs index c826a48..5b21b6d 100644 --- a/Sharpasonne.Models/Features/Monastery.cs +++ b/Sharpasonne.Models/Features/Monastery.cs @@ -2,9 +2,13 @@ namespace Sharpasonne.Models.Features { - class Monastery : IFeature + public class Monastery : IFeature { public IImmutableSet Connections { get; } + + public Monastery(IImmutableSet connections) + { + Connections = connections; + } } } - diff --git a/Sharpasonne.Models/Features/Road.cs b/Sharpasonne.Models/Features/Road.cs index 7f2998e..153b658 100644 --- a/Sharpasonne.Models/Features/Road.cs +++ b/Sharpasonne.Models/Features/Road.cs @@ -2,9 +2,13 @@ namespace Sharpasonne.Models.Features { - internal class Road : IFeature + public class Road : IFeature { public IImmutableSet Connections { get; } + + public Road(IImmutableSet connections) + { + Connections = connections; + } } } -