C# Class GW2PAO.Modules.WvW.WvWController

Inheritance: IWvWController
Mostrar archivo Open project: SamHurne/gw2pao

Private Properties

Property Type Description
CalculateDistances void
CanShowNotification bool
CheckForMapChange void
DisplayNotification void
HandleMatchChange void
InitializeAllObjectivesCollection void
InitializeWorlds void
RebuildCurrentObjectivesCollection void
Refresh void
RefreshObjectives void
RefreshTimers void
RefreshWorldScores void
WvWController System

Public Methods

Method Description
Shutdown ( ) : void

Forces a shutdown of the controller, including all running timers/threads

Start ( ) : void

Starts the automatic refresh

Stop ( ) : void

Stops the automatic refresh

Private Methods

Method Description
CalculateDistances ( ) : void

Recalculates/refreshes all calculated distances

CanShowNotification ( WvWObjectiveViewModel objectiveData ) : bool

Determines if we can show a notification for the given objective, based on user settings

CheckForMapChange ( ) : void

Performs a check for a map change and performs any neccessary actions if the map has changed

DisplayNotification ( WvWObjectiveViewModel objectiveData ) : void

Adds an objective to the notifications collection, and then removes the objective 10 seconds later

HandleMatchChange ( string newMatchID ) : void

Performs actions to handle a match change (either the match ended or the user switched matches)

InitializeAllObjectivesCollection ( ) : void

Initializes the All Objectives collection

InitializeWorlds ( ) : void

Initializes the WvW teams collection

RebuildCurrentObjectivesCollection ( WvWMap map ) : void

Rebuilds the current objectives collections

Refresh ( object state = null ) : void

Refreshes all objectives within the objectives collection This is the primary function of the WvWController

RefreshObjectives ( ) : void

Refreshes various state information for all objectives

RefreshTimers ( ) : void

Refreshes all timer values, including RI

RefreshWorldScores ( ) : void

Refreshes the score of all worlds

WvWController ( IWvWService wvwService, IPlayerService playerService, IHasWvWMap hasMap, IGuildService guildService, WvWUserData userData ) : System

Method Details

Shutdown() public method

Forces a shutdown of the controller, including all running timers/threads
public Shutdown ( ) : void
return void

Start() public method

Starts the automatic refresh
public Start ( ) : void
return void

Stop() public method

Stops the automatic refresh
public Stop ( ) : void
return void