public Manager(frmMain mainForm) { m_mainForm = mainForm; m_eyes = new Eyes(this); m_hands = new Hands(); m_ears = new Ears(this); m_mouth = new Mouth(m_mainForm); m_legs = new Legs(); m_actualState = FishingState.Stopped; m_neededActions = NeededAction.None; m_fishingStats.Reset(); //InitializeTimer(Timer, Handler); InitializeTimer(ref m_nextActionTimer, TakeNextAction); InitializeTimer(ref m_LureTimer, LureTimerTick); InitializeTimer(ref m_CharmTimer, CharmTimerTick); InitializeTimer(ref m_RaftTimer, RaftTimerTick); InitializeTimer(ref m_BaitTimer, BaitTimerTick); InitializeTimer(ref m_HearthStoneTimer, HearthStoneTimerTick); InitializeTimer(ref m_AntiAfkTimer, AntiAfkTimerTick); ResetTimers(); }
public Manager(IManagerEventHandler managerEventHandler, IProgress <string> progressHandle) { m_managerEventHandler = managerEventHandler; m_eyes = new Eyes(); m_hands = new Hands(); m_ears = new Ears(); m_mouth = new Mouth(progressHandle); m_legs = new Legs(); m_fishingState = FishingState.Stopped; m_neededActions = NeededAction.None; m_fishingStats = new FishingStats(); m_fishingStats.Reset(); _cancellationTokenSource = null; InitializeTimer(ref m_LureTimer, LureTimerTick); InitializeTimer(ref m_CharmTimer, CharmTimerTick); InitializeTimer(ref m_RaftTimer, RaftTimerTick); InitializeTimer(ref m_BaitTimer, BaitTimerTick); InitializeTimer(ref m_HearthStoneTimer, HearthStoneTimerTick); InitializeTimer(ref m_AntiAfkTimer, AntiAfkTimerTick); ResetTimers(); }
public Manager(IManagerEventHandler managerEventHandler, IProgress <string> progressHandle) { m_managerEventHandler = managerEventHandler; IntPtr WowWindowPointer = Helpers.Win32.FindWowWindow(); DialogResult result = DialogResult.Cancel; while (WowWindowPointer == new IntPtr()) { result = MessageBox.Show("Could not find the the WoW process. Please make sure the game is running.", "Error - WoW not open", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error); if (result == DialogResult.Cancel) { Environment.Exit(1); } WowWindowPointer = Helpers.Win32.FindWowWindow(); } m_eyes = new Eyes(WowWindowPointer); m_hands = new Hands(WowWindowPointer); m_ears = new Ears(); m_mouth = new Mouth(progressHandle); m_legs = new Legs(); m_fishingState = FishingState.Stopped; m_neededActions = NeededAction.None; m_fishingStats = new FishingStats(); m_fishingStats.Reset(); _cancellationTokenSource = null; InitializeTimer(ref m_LureTimer, LureTimerTick); InitializeTimer(ref m_CharmTimer, CharmTimerTick); InitializeTimer(ref m_RaftTimer, RaftTimerTick); InitializeTimer(ref m_BaitTimer, BaitTimerTick); InitializeTimer(ref m_HearthStoneTimer, HearthStoneTimerTick); InitializeTimer(ref m_AntiAfkTimer, AntiAfkTimerTick); ResetTimers(); }
public void ResetFishingStats() { m_fishingStats.Reset(); }