Skip to content

Commit

Permalink
[#9]: add player and game container interface
Browse files Browse the repository at this point in the history
  • Loading branch information
3k-dome committed Apr 27, 2023
1 parent 50d9508 commit 31edbe6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions catan-lib/Interfaces/Components/ICatan.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace CatanLib.Interfaces;
public interface ICatan
{
IEnumerable<IPlayer> Players { get; }
IPlayer CurrentPlayer { get; }
IDice Dice { get; }
}
12 changes: 12 additions & 0 deletions catan-lib/Interfaces/Components/IPlayer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using CatanLib.Enums;

namespace CatanLib.Interfaces;

public interface IPlayer : IVectorizableComponent
{
PlayerNumber Number { get; }
Dictionary<ResourceType, int> Resources { get; }

void UseResources(IEnumerable<ResourceType> resources);
void GainResources(IEnumerable<ResourceType> resources);
}

0 comments on commit 31edbe6

Please sign in to comment.