Ejemplo n.º 1
0
 public TurnManager(IWorldClock worldClock,
                    PerInitiativeFeature perInitiativeFeature, RealTimeFeature realTimeFeature,
                    IOsnowaContextManager contextManager)
 {
     _worldClock           = worldClock;
     _perInitiativeFeature = perInitiativeFeature;
     _realTimeFeature      = realTimeFeature;
     _contextManager       = contextManager;
 }
Ejemplo n.º 2
0
        public FlightViewModel(IWorldClock worldClock)
        {
            if (worldClock == null)
            {
                throw new ArgumentNullException("worldClock");
            }

            this._worldClock = worldClock;
            this._worldClock.PropertyChanged += new PropertyChangedEventHandler(WorldClock_PropertyChanged);
        }
Ejemplo n.º 3
0
        public WorldClockViewModel(IWorldClock worldClock)
        {
            if (worldClock == null)
            {
                throw new ArgumentNullException("worldClock");
            }

            this._worldClock = worldClock;
            this._worldClock.PropertyChanged += new PropertyChangedEventHandler(WorldClock_PropertyChanged);

            this._timer.Interval = new TimeSpan(0, 0, 0, 0, 100);
            this._timer.Tick    += new EventHandler(Timer_Tick);
        }