Pārlūkot izejas kodu

refactor: use setter - give GameState a *temporary* ref to GameActor

This reference in GameState can be removed once it is given to AIPlayer in game
initialisation (setupGameState)
rdh-local-prototype-endturn
Rob Hallam pirms 9 mēnešiem
vecāks
revīzija
7ac60058fa
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      app/actors/GameActor.java

+ 1
- 1
app/actors/GameActor.java Parādīt failu

@@ -65,7 +65,7 @@ public class GameActor extends AbstractActor {
// Initalize a new game state object
gameState = new GameState();
// #hack: give the game state a reference to the game actor so AIPlayer can send messages
gameState.gameActor = this;
gameState.setGameActor(this);
// Get the list of image files to pre-load the UI with
Set<String> images = ImageListForPreLoad.getImageListForPreLoad();


Notiek ielāde…
Atcelt
Saglabāt