Пример #1
0
 /// <summary>
 /// Creates a regular timer
 /// </summary>
 public Timer(float waitTime, TimerUnits timerUnit)
 {
     this.Units    = timerUnit;
     this.WaitTime = waitTime;
     type          = TimerType.NonDrawable;
     disType       = TimerDisplayType.CountUp;
 }
Пример #2
0
 /// <summary>
 /// Creates a drawable timer display that counts up
 /// </summary>
 public Timer(TimerUnits timeUnit, SpriteFont font, string timePrefix)
 {
     type             = TimerType.Drawable;
     this.font        = font;
     this.timerPrefix = timePrefix;
     this.Units       = timeUnit;
     disType          = TimerDisplayType.CountUp;
 }
Пример #3
0
 /// <summary>
 /// Creates a drawable timer that counts down from the specified value
 /// </summary>
 /// <param name="timeUnit">The unit of time to use</param>
 /// <param name="waitTime">The value to count down from</param>
 public Timer(TimerUnits timeUnit, int waitTime, SpriteFont font, string timePrefix)
 {
     type             = TimerType.Drawable;
     this.font        = font;
     this.timerPrefix = timePrefix;
     this.Units       = timeUnit;
     this.WaitTime    = waitTime;
     disType          = TimerDisplayType.Countdown;
     TimerFloat       = waitTime;
 }