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);
  }
Ejemplo n.º 2
0
 public EventPanel() {
   Mediator mediator = GameApplicationFactory.getInstance().getMediator();
   mediator.registerEventPanel(this);
   build();
 }
Ejemplo n.º 3
0
 public SpeedmenuButton(ActionListener listener) {
   super(listener);
   this.mediator = GameApplicationFactory.getInstance().getMediator();
 }