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.
|
* Identifier for the {@code Player} when displaying the game through the GUI.
|
||||||
* @see Totems
|
* @see Totems
|
||||||
*/
|
*/
|
||||||
private Totems totem;
|
public Totems totem;
|
||||||
|
|
||||||
// region Getters
|
// region Getters
|
||||||
/**
|
/**
|
||||||
@@ -131,14 +131,6 @@ public class Player implements Serializable {
|
|||||||
return PrestigeValue;
|
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
|
// endregion getters
|
||||||
|
|
||||||
// region Setters
|
// region Setters
|
||||||
@@ -202,13 +194,6 @@ public class Player implements Serializable {
|
|||||||
this.PrestigeValue -= Value;
|
this.PrestigeValue -= Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Setter for the private attribute {@link #totem Totem}.
|
|
||||||
* @see Totems
|
|
||||||
*/
|
|
||||||
private void setTotem(Totems totem){
|
|
||||||
this.totem = totem;
|
|
||||||
}
|
|
||||||
// endregion setters
|
// endregion setters
|
||||||
|
|
||||||
// region Constructors
|
// region Constructors
|
||||||
|
|||||||
Reference in New Issue
Block a user