C# Class Questor.Modules.Cache

Show file Open project: rixim/Questor

Public Properties

Property Type Description
MissionUseDrones bool?
MissionWeaponGroupId int
missionAmmo List

Public Methods

Method Description
AddPriorityTargets ( IEnumerable targets, Priority priority ) : void

Add priority targets

BookmarkById ( long bookmarkId ) : DirectEve.DirectBookmark

Return a bookmark by id

BookmarksByLabel ( string label ) : List

Returns bookmarks that start with the supplied label

Cache ( ) : System
CreateBookmark ( string label ) : void

Create a bookmark

DistanceFromMe ( double x, double y, double z ) : double

Calculate distance from me

EntitiesByName ( string name ) : IEnumerable

Return entities by name

EntityById ( long id ) : EntityCache

Return a cached entity by Id

FilterPath ( string path ) : string
GetAgentMission ( long agentId ) : DirectEve.DirectAgentMission

Returns the mission for a specific agent

GetBestTarget ( EntityCache currentTarget, double distance, bool lowValueFirst ) : EntityCache

Return the best possible target (based on current target, distance and low value first)

GetMissionBookmark ( long agentId, string startsWith ) : DirectEve.DirectAgentMissionBookmark

Returns the first mission bookmark that starts with a certain string

GetWindowByCaption ( string caption ) : DirectEve.DirectWindow
GetWindowByName ( string name ) : DirectEve.DirectWindow
InvalidateCache ( ) : void

Invalidate the cached items

LoadMissionActions ( long agentId, int pocketId ) : IEnumerable

Loads mission objectives from XML file

RefreshMissionItems ( long agentId ) : void

Refresh the mission items

RemovePriorityTargets ( IEnumerable targets ) : bool

Remove targets from priority list

Private Methods

Method Description
OrderByLowestHealth ( ) : int>.Func

Method Details

AddPriorityTargets() public method

Add priority targets
public AddPriorityTargets ( IEnumerable targets, Priority priority ) : void
targets IEnumerable
priority Priority
return void

BookmarkById() public method

Return a bookmark by id
public BookmarkById ( long bookmarkId ) : DirectEve.DirectBookmark
bookmarkId long
return DirectEve.DirectBookmark

BookmarksByLabel() public method

Returns bookmarks that start with the supplied label
public BookmarksByLabel ( string label ) : List
label string
return List

Cache() public method

public Cache ( ) : System
return System

CreateBookmark() public method

Create a bookmark
public CreateBookmark ( string label ) : void
label string
return void

DistanceFromMe() public method

Calculate distance from me
public DistanceFromMe ( double x, double y, double z ) : double
x double
y double
z double
return double

EntitiesByName() public method

Return entities by name
public EntitiesByName ( string name ) : IEnumerable
name string
return IEnumerable

EntityById() public method

Return a cached entity by Id
public EntityById ( long id ) : EntityCache
id long
return EntityCache

FilterPath() public method

public FilterPath ( string path ) : string
path string
return string

GetAgentMission() public method

Returns the mission for a specific agent
public GetAgentMission ( long agentId ) : DirectEve.DirectAgentMission
agentId long
return DirectEve.DirectAgentMission

GetBestTarget() public method

Return the best possible target (based on current target, distance and low value first)
public GetBestTarget ( EntityCache currentTarget, double distance, bool lowValueFirst ) : EntityCache
currentTarget EntityCache
distance double
lowValueFirst bool
return EntityCache

GetMissionBookmark() public method

Returns the first mission bookmark that starts with a certain string
public GetMissionBookmark ( long agentId, string startsWith ) : DirectEve.DirectAgentMissionBookmark
agentId long
startsWith string
return DirectEve.DirectAgentMissionBookmark

GetWindowByCaption() public method

public GetWindowByCaption ( string caption ) : DirectEve.DirectWindow
caption string
return DirectEve.DirectWindow

GetWindowByName() public method

public GetWindowByName ( string name ) : DirectEve.DirectWindow
name string
return DirectEve.DirectWindow

InvalidateCache() public method

Invalidate the cached items
public InvalidateCache ( ) : void
return void

LoadMissionActions() public method

Loads mission objectives from XML file
public LoadMissionActions ( long agentId, int pocketId ) : IEnumerable
agentId long
pocketId int
return IEnumerable

RefreshMissionItems() public method

Refresh the mission items
public RefreshMissionItems ( long agentId ) : void
agentId long
return void

RemovePriorityTargets() public method

Remove targets from priority list
public RemovePriorityTargets ( IEnumerable targets ) : bool
targets IEnumerable
return bool

Property Details

MissionUseDrones public property

public bool? MissionUseDrones
return bool?

MissionWeaponGroupId public property

public int MissionWeaponGroupId
return int

missionAmmo public property

public List missionAmmo
return List