/// <summary> /// Initializes a new instance of the <see cref="GamePlay.GMGame"/> class. /// </summary> /// <param name="gameName">Name of the game, used as an id for reference</param> public GMGame(string gameName) { minPriority = 0; maxPriority = 10; Speed = 1.0f; isRunning = false; name = gameName; timeSource = new TimeSource (); triggerList = new List<ATrigger>(); triggerListToRemove = new List<ATrigger>(); triggerListToAdd = new List<ATrigger>(); myCounter = 0; }
//------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance /// of the <see cref="GamePlay.TimerCondition"/> class. /// </summary> public TimerCondition(TimerType type, double _time, TimeSource _timeSource) { this.timeSource = _timeSource; this.time = timeSource.Time; this.type = type; switch(type) { case TimerType.Absolute: this.time = _time; break; default: this.time += _time; this.timeCond = _time; break; } }