public WorkerUnitContainer(Building building) { super(building.getOwner().getWorld().getMaxUnitCount()); this.building = building; }
public int increaseSupply(int amount) { int result = building.getOwner().getUnitCountContainer().increaseSupply(amount); assert result == amount : "result = " + result + " | amount = " + amount; return super.increaseSupply(amount); }