C# Class DivineRightGame.Managers.UserInterfaceManager

Used to communicate between the User Interface and the Game State
Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Méthode Description
GetBlockAtPoint ( MapCoordinate point ) : GraphicalBlock

Gets a graphical block whcih exists on a particular point

GetBlockAtPoint ( MapCoordinate point, GlobalOverlay globalOverlay ) : GraphicalBlock

Gets a graphical block whch exists on a particular point, with a global overlay

GetBlocksAroundPlayer ( int xRange, int yRange, int zRange ) : DRObjects.GraphicsEngineObjects.GraphicalBlock[]

Gets a number of graphical blocks around the player. The order will be as follows: first max z, then max x, then max y.

GetBlocksAroundPoint ( MapCoordinate centrePoint, int xRange, int yRange, int zRange, GlobalOverlay overlay = GlobalOverlay.NONE ) : DRObjects.GraphicsEngineObjects.GraphicalBlock[]

Gets a number of graphical blocks around a particular point. The order will be as follows: first max z, then max x, then max y.

GetPlayerActor ( ) : Actor

Gets the Actor object which represents the player

GetPossibleActions ( MapCoordinate coordinate ) : ActionType[]

Gets possible actions for a particular block

PerformAction ( MapCoordinate coordinate, MapItem item, ActionType actionType, object args ) : ActionFeedback[]

Performs an action on a particular or a particular item. If item is not null, will use the item. Otherwise will use the coordinate

PerformLocalTick ( ) : ActionFeedback[]

Performs a local map tick

Method Details

GetBlockAtPoint() public static méthode

Gets a graphical block whcih exists on a particular point
public static GetBlockAtPoint ( MapCoordinate point ) : GraphicalBlock
point MapCoordinate
Résultat DRObjects.GraphicsEngineObjects.GraphicalBlock

GetBlockAtPoint() public static méthode

Gets a graphical block whch exists on a particular point, with a global overlay
public static GetBlockAtPoint ( MapCoordinate point, GlobalOverlay globalOverlay ) : GraphicalBlock
point MapCoordinate
globalOverlay GlobalOverlay
Résultat DRObjects.GraphicsEngineObjects.GraphicalBlock

GetBlocksAroundPlayer() public static méthode

Gets a number of graphical blocks around the player. The order will be as follows: first max z, then max x, then max y.
public static GetBlocksAroundPlayer ( int xRange, int yRange, int zRange ) : DRObjects.GraphicsEngineObjects.GraphicalBlock[]
xRange int How many tiles away from the centre point on the x axis will be obtained
yRange int
zRange int
Résultat DRObjects.GraphicsEngineObjects.GraphicalBlock[]

GetBlocksAroundPoint() public static méthode

Gets a number of graphical blocks around a particular point. The order will be as follows: first max z, then max x, then max y.
public static GetBlocksAroundPoint ( MapCoordinate centrePoint, int xRange, int yRange, int zRange, GlobalOverlay overlay = GlobalOverlay.NONE ) : DRObjects.GraphicsEngineObjects.GraphicalBlock[]
centrePoint MapCoordinate The center point around which the tiles will be calculated
xRange int How many tiles away from the centre point on the x axis will be obtained
yRange int
zRange int
overlay GlobalOverlay If its a global map, the overlay to apply on it
Résultat DRObjects.GraphicsEngineObjects.GraphicalBlock[]

GetPlayerActor() public static méthode

Gets the Actor object which represents the player
public static GetPlayerActor ( ) : Actor
Résultat DRObjects.Actor

GetPossibleActions() public static méthode

Gets possible actions for a particular block
public static GetPossibleActions ( MapCoordinate coordinate ) : ActionType[]
coordinate MapCoordinate
Résultat ActionType[]

PerformAction() public static méthode

Performs an action on a particular or a particular item. If item is not null, will use the item. Otherwise will use the coordinate
public static PerformAction ( MapCoordinate coordinate, MapItem item, ActionType actionType, object args ) : ActionFeedback[]
coordinate MapCoordinate
item DRObjects.MapItem
actionType ActionType
args object
Résultat ActionFeedback[]

PerformLocalTick() public static méthode

Performs a local map tick
public static PerformLocalTick ( ) : ActionFeedback[]
Résultat ActionFeedback[]