C# Class SleepHunter.Macro.MacroState

Inheritance: ObservableObject, IDisposable
Show file Open project: ewrogers/SleepHunter4 Class Usage Examples

Protected Properties

Property Type Description
cancelSource System.Threading.CancellationTokenSource
client SleepHunter.Models.Player
lastKnownMapName string
lastKnownMapNumber int
lastKnownXCoordinate int
lastKnownYCoordinate int
name string
status MacroStatus
task Task

Public Methods

Method Description
Dispose ( ) : void
MacroState ( Player client ) : System
Pause ( ) : void
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
CancelTask ( bool waitForTask = false ) : bool
CheckKnownState ( bool saveStateAfterCheck = true ) : void
CheckMap ( ) : bool
Dispose ( bool isDisposing ) : void
MacroLoop ( object argument ) : void
OnMapChanged ( ) : void
OnStatusChanged ( MacroStatus status ) : void
OnXYChanged ( ) : void
PauseMacro ( ) : void
ResumeMacro ( ) : void
SaveKnownState ( ) : void
StartMacro ( object state = null ) : void
StopMacro ( ) : void
TakeAction ( MacroAction action ) : void

Method Details

CancelTask() protected method

protected CancelTask ( bool waitForTask = false ) : bool
waitForTask bool
return bool

CheckKnownState() protected method

protected CheckKnownState ( bool saveStateAfterCheck = true ) : void
saveStateAfterCheck bool
return void

CheckMap() protected method

protected CheckMap ( ) : bool
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool isDisposing ) : void
isDisposing bool
return void

MacroLoop() protected abstract method

protected abstract MacroLoop ( object argument ) : void
argument object
return void

MacroState() public method

public MacroState ( Player client ) : System
client SleepHunter.Models.Player
return System

OnMapChanged() protected method

protected OnMapChanged ( ) : void
return void

OnStatusChanged() protected method

protected OnStatusChanged ( MacroStatus status ) : void
status MacroStatus
return void

OnXYChanged() protected method

protected OnXYChanged ( ) : void
return void

Pause() public method

public Pause ( ) : void
return void

PauseMacro() protected method

protected PauseMacro ( ) : void
return void

ResumeMacro() protected method

protected ResumeMacro ( ) : void
return void

SaveKnownState() protected method

protected SaveKnownState ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StartMacro() protected method

protected StartMacro ( object state = null ) : void
state object
return void

Stop() public method

public Stop ( ) : void
return void

StopMacro() protected method

protected StopMacro ( ) : void
return void

TakeAction() protected method

protected TakeAction ( MacroAction action ) : void
action MacroAction
return void

Property Details

cancelSource protected property

protected CancellationTokenSource,System.Threading cancelSource
return System.Threading.CancellationTokenSource

client protected property

protected Player,SleepHunter.Models client
return SleepHunter.Models.Player

lastKnownMapName protected property

protected string lastKnownMapName
return string

lastKnownMapNumber protected property

protected int lastKnownMapNumber
return int

lastKnownXCoordinate protected property

protected int lastKnownXCoordinate
return int

lastKnownYCoordinate protected property

protected int lastKnownYCoordinate
return int

name protected property

protected string name
return string

status protected property

protected MacroStatus status
return MacroStatus

task protected property

protected Task task
return Task