From 9a79bf0cf4c59df4b7a228fcaa9334bb3ea65720 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Fri, 26 Nov 2021 12:32:26 +0100 Subject: [PATCH] Player added methods and javadoc --- src/ch/zhaw/catan/Player.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/ch/zhaw/catan/Player.java b/src/ch/zhaw/catan/Player.java index 7fafac1..4eb49b8 100644 --- a/src/ch/zhaw/catan/Player.java +++ b/src/ch/zhaw/catan/Player.java @@ -37,6 +37,19 @@ public class Player { return resources; } + /** + * This method returns player faction + * @return + */ + public Config.Faction getFaction() { return faction; } + + /** + * This method returns for specific resource how much player possesess. + * @param resource + * @return + */ + public int getSpecificResource(Config.Resource resource) { return resources.get(resource); } + /** * This method adds a specific resource to resourcess * @param resource to add