C# 클래스 DivineRightGame.Managers.UserInterfaceManager

Used to communicate between the User Interface and the Game State
파일 보기 프로젝트 열기: Haedrian/Divine-Right

공개 메소드들

메소드 설명
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

메소드 상세

GetBlockAtPoint() 공개 정적인 메소드

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

GetBlockAtPoint() 공개 정적인 메소드

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
리턴 DRObjects.GraphicsEngineObjects.GraphicalBlock

GetBlocksAroundPlayer() 공개 정적인 메소드

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
리턴 DRObjects.GraphicsEngineObjects.GraphicalBlock[]

GetBlocksAroundPoint() 공개 정적인 메소드

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
리턴 DRObjects.GraphicsEngineObjects.GraphicalBlock[]

GetPlayerActor() 공개 정적인 메소드

Gets the Actor object which represents the player
public static GetPlayerActor ( ) : Actor
리턴 DRObjects.Actor

GetPossibleActions() 공개 정적인 메소드

Gets possible actions for a particular block
public static GetPossibleActions ( MapCoordinate coordinate ) : ActionType[]
coordinate MapCoordinate
리턴 ActionType[]

PerformAction() 공개 정적인 메소드

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
리턴 ActionFeedback[]

PerformLocalTick() 공개 정적인 메소드

Performs a local map tick
public static PerformLocalTick ( ) : ActionFeedback[]
리턴 ActionFeedback[]