Updated 'Game' class.
Updated the 'Game' class by adding the 'setDie' method to it.
This commit is contained in:
@@ -316,6 +316,15 @@ public void setActiveColor(Color activeColor) {
|
|||||||
this.activeColor = activeColor;
|
this.activeColor = activeColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This method will be used to set die attribute of Game class to the given die parameter.
|
||||||
|
*
|
||||||
|
* @param die as the new value of die as a Die object.
|
||||||
|
*/
|
||||||
|
public void setDie(Die die) {
|
||||||
|
this.die = die;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method will be used to set host attribute of Game class to the given host parameter.
|
* This method will be used to set host attribute of Game class to the given host parameter.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user