//adds an influence to the event public void addInfluence(HistoricEventInfluence influence) { this.Influences.Add(influence); }
//handles an influence for a historic event public static void SetHistoricEventInfluence(HistoricEventInfluence e, Boolean onEndDate) { double value = onEndDate ? -e.Value : e.Value; switch (e.Type) { case HistoricEventInfluence.InfluenceType.PassengerDemand: PassengerHelpers.ChangePaxDemand(value); break; case HistoricEventInfluence.InfluenceType.FuelPrices: double percent = (100 - value) / 100; GameObject.GetInstance().FuelPrice = GameObject.GetInstance().FuelPrice * percent; break; case HistoricEventInfluence.InfluenceType.Stocks: break; } }