Fix: "totem" Attribute Is Now Public (Removed Setter And Getter Methods) In Player.java.

This commit is contained in:
GabrieleRadice
2026-05-13 16:12:35 +02:00
parent 2c315d5fe4
commit f8f8b74c91
@@ -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