merge the new developmentbranch into the test branch #39

Closed
j23f0712 wants to merge 431 commits from development2 into dev/test
Showing only changes of commit 79bf1c16e8 - Show all commits

View File

@@ -152,6 +152,16 @@ public Player getPlayerByColor(Color color) {
return null; 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. * This method will be used to return the id of the Player defined by the given color parameter.
* *