Skip to content
Snippets Groups Projects

Added observer

Merged Edvard Granheim Harbo requested to merge observer into dev
11 files
+ 262
199
Compare changes
  • Side-by-side
  • Inline
Files
11
package edu.ntnu.idatt2003.mappevurderingprog2.controllers;
import edu.ntnu.idatt2003.mappevurderingprog2.models.chaos.ChaosGame;
import edu.ntnu.idatt2003.mappevurderingprog2.models.chaos.ChaosGameDescription;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
public class GameController {
public void setChaosGameDescription(ChaosGameDescription description) {
ChaosGame.getInstance().setDescription(description);
}
public void setChaosCanvasSize(int width, int height) {
ChaosGame.getInstance().setCanvas(width, height);
}
}
Loading