diff --git a/Projekte/mdga/model/src/main/java/pp/mdga/game/Game.java b/Projekte/mdga/model/src/main/java/pp/mdga/game/Game.java index 199f2481..9f0cee8f 100644 --- a/Projekte/mdga/model/src/main/java/pp/mdga/game/Game.java +++ b/Projekte/mdga/model/src/main/java/pp/mdga/game/Game.java @@ -152,6 +152,16 @@ public Player getPlayerByColor(Color color) { return null; } + /** + * This method will be used to return the id of the active player depending on the activeColor attribute of Game + * class. + * + * @return the id of the active player as an Integer. + */ + public int getActivePlayerId() { + return this.getPlayerIdByColor(this.activeColor); + } + /** * This method will be used to return the id of the Player defined by the given color parameter. *