public DynamicParameter Get(DynamicParameterType parameterType, DynamicParameterData data, int level) { DynamicParameter parameter = CreateParameter(parameterType, level, data); parameter.SetCalculators(GetProgressionCalculator(data.Parameter.progressionType), GetProgressionCalculator(data.Price.progressionType)); return(parameter); }
public DynamicParameter Get(DynamicParameterType parameterType) { int level = m_dynamicParametersLevels[(int)parameterType]; DynamicParameterData data = m_cityData.GetDynamicParameterData(parameterType); DynamicParameter parameter = CreateParameter(parameterType, level, data); parameter.SetCalculators(GetProgressionCalculator(data.Parameter.progressionType), GetProgressionCalculator(data.Price.progressionType)); return(parameter); }
private DynamicParameter CreateParameter(DynamicParameterType dynamicParameterType, int level, DynamicParameterData data) { switch (dynamicParameterType) { case DynamicParameterType.ArtistsCount: return(new ArtistsCount(level, data)); case DynamicParameterType.DrawingSpeed: return(new DrawingSpeed(level, data)); case DynamicParameterType.RunningSpeed: return(new RunSpeed(level, data)); case DynamicParameterType.SprayBottleCapacity: return(new SprayCanCapacity(level, data)); case DynamicParameterType.RespectIncomePerBlock: return(new RespectIncomePerBlock(level, data)); case DynamicParameterType.BuildingIncome: return(new BuildingIncome(level, data)); case DynamicParameterType.ProductionSpeed: return(new ProductionSpeed(level, data)); default: return(null); } }