public BuildingConstructionStrategy(Building building, BuildingStateContext context) {
    GameApplicationFactory applicationFactory;
    applicationFactory = GameApplicationFactory.getInstance();
    info = applicationFactory.getResourceInfo();
    this.building = building;
    building.setImageName("underconstruction");

    String type = building.getType();
    requiredResources = info.getResourcesForThing(type);
  }
Beispiel #2
0
 public EventPanel() {
   Mediator mediator = GameApplicationFactory.getInstance().getMediator();
   mediator.registerEventPanel(this);
   build();
 }
Beispiel #3
0
 public SpeedmenuButton(ActionListener listener) {
   super(listener);
   this.mediator = GameApplicationFactory.getInstance().getMediator();
 }