Fix: "totem" Attribute Is Now Public (Removed Setter And Getter Methods) In Player.java.
This commit is contained in:
@@ -24,7 +24,7 @@ public class Player implements Serializable {
|
||||
* Identifier for the {@code Player} when displaying the game through the GUI.
|
||||
* @see Totems
|
||||
*/
|
||||
private Totems totem;
|
||||
public Totems totem;
|
||||
|
||||
// region Getters
|
||||
/**
|
||||
@@ -131,14 +131,6 @@ public class Player implements Serializable {
|
||||
return PrestigeValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for the private attribute {@link #totem Totem}.
|
||||
* @return {@code Totems} - The Totem identifier for the Player.
|
||||
* @see Totems
|
||||
*/
|
||||
public Totems getTotem() {
|
||||
return totem;
|
||||
}
|
||||
// endregion getters
|
||||
|
||||
// region Setters
|
||||
@@ -202,13 +194,6 @@ public class Player implements Serializable {
|
||||
this.PrestigeValue -= Value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for the private attribute {@link #totem Totem}.
|
||||
* @see Totems
|
||||
*/
|
||||
private void setTotem(Totems totem){
|
||||
this.totem = totem;
|
||||
}
|
||||
// endregion setters
|
||||
|
||||
// region Constructors
|
||||
|
||||
Reference in New Issue
Block a user