C# Class BoringHeroes.ScreenReader

Datei anzeigen Open project: lances101/BoringHeroes

Public Properties

Property Type Description
ShouldBringToFront bool

Public Methods

Method Description
AreTalentsOpen ( ) : bool
DebugPlotVectorOnMap ( CurrentGameState state, System points = null ) : void
DetectSide ( CurrentGameState state ) : void
FindOnScreen ( string path ) : TemplateMatch
FindOnScreen ( string path, float percentage ) : TemplateMatch
FindOnScreen ( string path, float percentage, bool shouldResize ) : TemplateMatch
FindOnScreen ( string path, float percentage, bool shouldResize, Rectangle cropRect ) : TemplateMatch
TestTemplateOnScreen ( string path, float percentage ) : float
TickNow ( ) : long
UpdateCurrentTalentLevel ( CurrentGameState state ) : void
UpdateEverythingOptimized ( CurrentGameState state ) : void
UpdateHasTalents ( CurrentGameState state ) : void
UpdateHeroHP ( CurrentGameState state ) : void
UpdateHeroMounted ( CurrentGameState state ) : bool
UpdateHeroes ( CurrentGameState state ) : void
UpdateMinimap ( CurrentGameState state ) : void
UpdateTowers ( CurrentGameState state ) : void
UpdateUnits ( CurrentGameState state ) : void

Private Methods

Method Description
ChangePixelFormat ( Bitmap inputImage, PixelFormat newFormat ) : Bitmap
FindCamera ( Point p, List blobs ) : Point?
GrabScreenGDI ( Rectangle rect ) : Bitmap
InRange ( float val, float bot, float top ) : bool
ToPointsArray ( List corners ) : System.Drawing.Point[]

Method Details

AreTalentsOpen() public static method

public static AreTalentsOpen ( ) : bool
return bool

DebugPlotVectorOnMap() public static method

public static DebugPlotVectorOnMap ( CurrentGameState state, System points = null ) : void
state BoringHeroes.GameLogic.CurrentGameState
points System
return void

DetectSide() public static method

public static DetectSide ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

FindOnScreen() public static method

public static FindOnScreen ( string path ) : TemplateMatch
path string
return AForge.Imaging.TemplateMatch

FindOnScreen() public static method

public static FindOnScreen ( string path, float percentage ) : TemplateMatch
path string
percentage float
return AForge.Imaging.TemplateMatch

FindOnScreen() public static method

public static FindOnScreen ( string path, float percentage, bool shouldResize ) : TemplateMatch
path string
percentage float
shouldResize bool
return AForge.Imaging.TemplateMatch

FindOnScreen() public static method

public static FindOnScreen ( string path, float percentage, bool shouldResize, Rectangle cropRect ) : TemplateMatch
path string
percentage float
shouldResize bool
cropRect System.Drawing.Rectangle
return AForge.Imaging.TemplateMatch

TestTemplateOnScreen() public static method

public static TestTemplateOnScreen ( string path, float percentage ) : float
path string
percentage float
return float

TickNow() public static method

public static TickNow ( ) : long
return long

UpdateCurrentTalentLevel() public static method

public static UpdateCurrentTalentLevel ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

UpdateEverythingOptimized() public static method

public static UpdateEverythingOptimized ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

UpdateHasTalents() public static method

public static UpdateHasTalents ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

UpdateHeroHP() public static method

public static UpdateHeroHP ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

UpdateHeroMounted() public static method

public static UpdateHeroMounted ( CurrentGameState state ) : bool
state BoringHeroes.GameLogic.CurrentGameState
return bool

UpdateHeroes() public static method

public static UpdateHeroes ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

UpdateMinimap() public static method

public static UpdateMinimap ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

UpdateTowers() public static method

public static UpdateTowers ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

UpdateUnits() public static method

public static UpdateUnits ( CurrentGameState state ) : void
state BoringHeroes.GameLogic.CurrentGameState
return void

Property Details

ShouldBringToFront public_oe static_oe property

public static bool ShouldBringToFront
return bool