private float getEstimateProduction(int propType) { ImportExportData productionData = getProductionDataForShell(this.shellType); ImportExportData demandData = getDemandDataForShell(this.shellType); float production = (productionData.get(propType) - demandData.get(propType)) * this.importExportData.get(POPULATION); production += getBoost(propType) * this.importExportData.get(POPULATION); float invSpeed = (float) (speed * GameData.getSpeed() / 1000f); production *= invSpeed; // speed*GameData.getSpeed()/1000f; production += this.importExportData.get(propType); return production; }
private float getBoost(int propType) { float boost = 0; ImportExportData productionData = getProductionDataForShell(this.shellType); for (int availablePropType = 0; availablePropType < RESOURCES; availablePropType++) { float currentProduction = this.importExportData.get(availablePropType); if (productionData.get(propType) > 0) { boost += getPropBoost(propType, currentProduction > 0, availablePropType); } } boost += getPlanetBoost(propType) - (ShellWorldData.getInstance().getDifficulty() / 10f); boost *= (productionData.get(propType) > 0) ? 1 : 0; // float invSpeed = speed/100f; // boost *= invSpeed; return boost; }