예제 #1
0
  public void onStartScreen() {
    System.out.println("GameScreen onStartScreen");
    Game game = Main.app.getStateManager().getState(Game.class);
    game.setGameScreenController(this);
    timeLabel.setText(game.getTimeString());

    GameCameraState Cam = Main.app.getStateManager().getState(GameCameraState.class);
    Cam.pointCameraAt(game.getMap().getMapCenter());
  }
예제 #2
0
 public void update() {
   for (Updatable updatable : updatables.values()) {
     updatable.update();
   }
   Game game = Main.app.getStateManager().getState(Game.class);
   timeLabel.setText(game.getTimeString());
   // update pathfinding statistics
   PathManager pathFinding = PathManager.getSingleton();
   NumberFormat numberFormat = NumberFormat.getIntegerInstance(); // comma seperated
   expandedNodesLabel.setText(numberFormat.format(-1));
   graphReadsLabel.setText(numberFormat.format(-1));
 }