merge dev into test #30

Merged
j23f0712 merged 45 commits from development into dev/test 2024-12-02 01:29:40 +01:00
27 changed files with 239 additions and 85 deletions
Showing only changes of commit dee6bf9f9c - Show all commits

View File

@@ -42,6 +42,9 @@ public class Game {
// The die used in the game.
private Die die;
// The host of this game
private int host;
// The color of the active player.
private Color activeColor;
@@ -232,6 +235,15 @@ public Color getActiveColor() {
return activeColor;
}
/**
* This method will be used to return host attribute of Game class.
*
* @return host as an Integer.
*/
public int getHost() {
return this.host;
}
/**
* This method sets the dice modifier.
*
@@ -304,6 +316,15 @@ public void setActiveColor(Color activeColor) {
this.activeColor = activeColor;
}
/**
* This method will be used to set host attribute of Game class to the given host parameter.
*
* @param host as the new value of host as an Integer.
*/
public void setHost(int host) {
this.host = host;
}
/**
* This method returns the all ready state.
*