Skip to content

Commit

Permalink
[#9]: update players
Browse files Browse the repository at this point in the history
  • Loading branch information
3k-dome committed Apr 30, 2023
1 parent 31edbe6 commit ea572e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions catan-lib/Interfaces/Components/IPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ public interface IPlayer : IVectorizableComponent
PlayerNumber Number { get; }
Dictionary<ResourceType, int> Resources { get; }

void UseResource(ResourceType resource);
void UseResources(IEnumerable<ResourceType> resources);
void GainResource(ResourceType resource);
void GainResources(IEnumerable<ResourceType> resources);
}
2 changes: 1 addition & 1 deletion catan-lib/Interfaces/Components/ISettlement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public interface ISettlement : IVectorizableComponent, IVectorizableActions, IAc
VertexCoordinate Vertex { get; set; }
bool IsSettlement { get; }
bool IsCity { get; }
PlayerNumber? Belongs { get; }
IPlayer? Belongs { get; }
}
}

0 comments on commit ea572e8

Please sign in to comment.