using RichCreator.Utility;
using RichCreator.Utility.InputControl;
using RichCreator.Utility.Structs;
using RichCreator.StateMachines;
using RichCreator.Utilitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace RichCreator.Maps.Lindong
{
///
/// 单人进房间技能释放
///
public class SingleEntryHouseSkill
{
///
/// 释放技能
///
///
///
public static void ReleaseSkill(Int32 houseIndex, Int32 preHouseIndex,MoveState moveState)
{
//移动和发招
switch (houseIndex)
{
case 2:
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.LeftArrow);
moveState.SyncMove(new ZTPoint(-110, 0));
G.Instance.InputControl.PressKeys(HIDCode.LeftArrow, HIDCode.G);
break;
case 1:
moveState.SyncMove(new ZTPoint(-480, 80));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.W);
break;
case 5:
//G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.RightArrow);
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.R);
Thread.Sleep(1000);
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.T);
break;
case 4:
moveState.SyncMove(new ZTPoint(-1150, -50));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.RightArrow);
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.E);
//Thread.Sleep(1000);
//G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.E);
break;
case 8:
moveState.SyncMove(new ZTPoint(-100, 110));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.RightArrow);
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.G);
//Thread.Sleep(300);
//G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.Z);
break;
case 9:
moveState.SyncMove(new ZTPoint(325, 65));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.R);
Thread.Sleep(1000);
moveState.SyncMove(new ZTPoint(300, 0));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.T);
break;
case 10:
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.Q);
break;
case 12:
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.RightArrow);
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.R);
Thread.Sleep(1000);
moveState.SyncMove(new ZTPoint(-110, 0));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.T);
break;
case 13:
if (preHouseIndex == 12)
{
moveState.SyncMove(new ZTPoint(600, 150));
}
else
{
moveState.SyncMove(new ZTPoint(-300, 200));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.RightArrow);
}
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.Q);
Thread.Sleep(1000);
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.E);
break;
case 14:
if (preHouseIndex == 13)
{
moveState.SyncMove(new ZTPoint(400, 0));
}
else
{
moveState.SyncMove(new ZTPoint(0, 100));
}
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.W);
break;
case 15:
moveState.SyncMove(new ZTPoint(600, 0));
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.H);
Thread.Sleep(5000);
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.Y);
break;
case 18:
G.Instance.InputControl.PressKey(RandomUtils.KeyPressDuration, HIDCode.W);
break;
}
}
}
}