File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ public class Player implements Comparable<Player> {
2424 private final int id ;
2525 private final String name ;
2626 private final PlayerType playerType ;
27- private final Force force ;
2827 private final TilePosition startLocation ;
2928
3029 private PlayerSelf self = null ;
@@ -41,7 +40,6 @@ PlayerSelf self() {
4140 this .id = id ;
4241 this .name = playerData .getName ();
4342 this .playerType = PlayerType .idToEnum [playerData .getType ()];
44- this .force = game .getForce (playerData .getForce ());
4543 this .startLocation = new TilePosition (playerData .getStartLocationX (), playerData .getStartLocationY ());
4644 }
4745
@@ -108,7 +106,7 @@ public PlayerType getType() {
108106 * @return The {@link Force} object that the player is part of.
109107 */
110108 public Force getForce () {
111- return force ;
109+ return game . getForce ( playerData . getForce ()) ;
112110 }
113111
114112 /**
You can’t perform that action at this time.
0 commit comments