Beispiel #1
0
        public override async void StartGame(DifficultyLevelType diffLevelType, string[] args)
        {
            Init();
            CallOnNotification("part 1");
            //Todo:HHC,启动的时候先定位到指定一帧
            await SendWcfCommandPluginsHelper.PlayVideo(SignKey, "guard.mp4", 1, false, _videoAddress);

            await SendWcfCommandPluginsHelper.ChangeFrame(TimeSpan.FromSeconds(2), VideoActionType.Stop, _videoAddress);

            //Todo:判断是否开始继续执行
            var result = false;

            while (!result)
            {
                var resultStatus = await SendWcfCommandPluginsHelper.GetNotificationStatus("GuardStart", _newNotificationServiceAddress);

                if (resultStatus == AppStatusType.Stop)
                {
                    result = true;
                }
                else
                {
                    await Task.Delay(2000);
                }
            }
            CallOnNotification("part 2");
            Task.Factory.StartNew(Guarding);
        }
Beispiel #2
0
        public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
        {
            InitGameData();
            var buttonItem = ButtonItems[0];

            _hitCheckTask = new HitCheckTask(SignKey, buttonItem.ServiceAddress, buttonItem.DeviceNumber, buttonItem.SignName);
            Task.Factory.StartNew(GameLogic);
        }
Beispiel #3
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     _beginButtonItem  = ButtonItems[0];
     _midwayButtonItem = ButtonItems[1];
     _endButtonItem    = ButtonItems[2];
     _errorRelayItem   = RelayItems[0];
     _rightRelayItem   = RelayItems[1];
     Task.Factory.StartNew(GameLogic);
 }
Beispiel #4
0
        public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
        {
            _eyebuttons.Add(ButtonItems[0], RelayItems[0]);
            _eyebuttons.Add(ButtonItems[1], RelayItems[1]);
            _eyebuttons.Add(ButtonItems[2], RelayItems[2]);
            _eyebuttons.Add(ButtonItems[3], RelayItems[3]);
            _eyebuttons.Add(ButtonItems[4], RelayItems[4]);
            _eyebuttons.Add(ButtonItems[5], RelayItems[5]);

            Init();
            Task.Factory.StartNew(EyePick);
        }
Beispiel #5
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     InitAppParam();
     InitGameData();
     ArduinoHelper.Connect();
     for (var i = 0; i < 12; i++)
     {
         ArduinoHelper.ShowLed2(0, i);
     }
     ArduinoHelper.ShowLed3(0, Led3Type.Temperature);
     ArduinoHelper.ShowLed3(0, Led3Type.Time);
     Task.Factory.StartNew(GameLogic);
 }
Beispiel #6
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     Init();
     Task.Factory.StartNew(Crystalcheck);
 }
Beispiel #7
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     Init();
     Task.Factory.StartNew(BattleOn);
 }
Beispiel #8
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
 }
Beispiel #9
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     OnNotification(new NotificationEventArgs(ButtonItems.Select(s => s.Number).ToList().ToText()));
     InitPressButtonItems();
     Task.Factory.StartNew(GameLogic);
 }
Beispiel #10
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     InitGameData();
     InitAppParam();
     Task.Factory.StartNew(GameLogic);
 }
Beispiel #11
0
 public override void StartGame(DifficultyLevelType diffLevelType, string[] args)
 {
     Task.Factory.StartNew(GameLogic);
 }
Beispiel #12
0
 public abstract void StartGame(DifficultyLevelType diffLevelType, string[] args);