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