Skip to content

Commit

Permalink
Creates (temporary) public constructors for Features
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Richardson committed Jan 24, 2018
1 parent 49b310d commit 56da050
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
10 changes: 8 additions & 2 deletions Sharpasonne.Models/Features/City.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

namespace Sharpasonne.Models.Features
{
class City : IFeature
public class City : IFeature
{
public IImmutableSet<Segment> Connections { get; }

public bool HasShield { get; }

public City(IImmutableSet<Segment> connections, bool hasShield)
{
Connections = connections;
HasShield = hasShield;
}
}
}

4 changes: 2 additions & 2 deletions Sharpasonne.Models/Features/Field.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ namespace Sharpasonne.Models.Features
{
public class Field : IFeature
{
public IImmutableSet<Segment> Connections { get; }

public Field(IImmutableSet<Segment> connections)
{
Connections = connections;
}

public IImmutableSet<Segment> Connections { get; }
}
}

8 changes: 6 additions & 2 deletions Sharpasonne.Models/Features/Monastery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

namespace Sharpasonne.Models.Features
{
class Monastery : IFeature
public class Monastery : IFeature
{
public IImmutableSet<Segment> Connections { get; }

public Monastery(IImmutableSet<Segment> connections)
{
Connections = connections;
}
}
}

8 changes: 6 additions & 2 deletions Sharpasonne.Models/Features/Road.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

namespace Sharpasonne.Models.Features
{
internal class Road : IFeature
public class Road : IFeature
{
public IImmutableSet<Segment> Connections { get; }

public Road(IImmutableSet<Segment> connections)
{
Connections = connections;
}
}
}

0 comments on commit 56da050

Please sign in to comment.