private void CalculateTimeForWeather(WeatherType weatherType) { Console.WriteLine("*********" + weatherType.ToString() + " Weather**********"); foreach (Vehicle vehicle in _vehicles) { FastestPath(vehicle, weatherType); } }
private string ConvertWeatherTypeToName(WeatherType type) { if (Enum.IsDefined(typeof(WeatherType), type) == false) { return(null); } return(type.ToString().ToUpperInvariant()); }
private void CalculateTimeForWeather(WeatherType weatherType) { Console.WriteLine("*********" + weatherType.ToString() + " Weather**********"); foreach (Vehicle vehicle in _vehicles) { var res = ShortestPath(vehicle, weatherType, _weatherImpactList, _possiblePathList); PrintOutput(res, vehicle); } }
public string ENVFileName(SeasonType seasonType, WeatherType weatherType) { //int index = (int)seasonType * 3 + (int)weatherType; //return ENVFileNames[index]; var envfilekey = seasonType.ToString() + weatherType.ToString(); var envfile = ENVFileNames[envfilekey]; // Trace.TraceInformation("Selected Environment file is {1}", envfilekey, envfile); return(envfile); }
public void ShowWeather(WeatherType type) { if (this.HasWeatherSkill) { Debug.Log(this.ActorLogicData.Name + ": " + type.ToString()); if (this.ShowWeatherEvent != null) { this.ShowWeatherEvent(type); } } }
public string GetEnvironmentFileName(SeasonType seasonType, WeatherType weatherType) { string envfilekey = seasonType.ToString() + weatherType.ToString(); return(fileNames[envfilekey]); }
public static string GetWeatherEmojiIcon(this WeatherType weather) { var key = $"weather_{Convert.ToInt32(weather)}"; var emojiId = MasterFile.Instance.Emojis[key]; var emojiName = emojiId > 0 ? string.Format(Strings.EmojiSchema, key, emojiId) : weather.ToString(); return(emojiName); }
public override string ToString() { return(loc + " " + weather.ToString()); }
public void ShowWeather(WeatherType type) { if (this.HasWeatherSkill ) { Debug.Log(this.ActorLogicData.Name + ": " + type.ToString()); if (this.ShowWeatherEvent != null) { this.ShowWeatherEvent(type); } } }