C# 클래스 Divine_Right.GameScreens.PlayableInterface

The Actual Game Interface that the user plays in
상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: Haedrian/Divine-Right

공개 프로퍼티들

프로퍼티 타입 설명
TILEHEIGHT int
TILEWIDTH int

Private Properties

프로퍼티 타입 설명
LoadGlobalMap void
LoadLocation void
LoadRandomEncounter void
PrepareGrid List

공개 메소드들

메소드 설명
DetermineMouseAction ( Microsoft.Xna.Framework.Input.MouseState state ) : MouseActionEnum?

Translate the state of the mouse and the last actions to determine what the mouse is doing

Draw ( GameTime gameTime ) : void
DrawGrid ( IEnumerable blocks ) : void

Draws the prepared grid onto the screen

Initialize ( ) : void
PerformAction ( MapCoordinate coord, MapItem item, DRObjects actionType, object args ) : void

Performs the action and handles feedback

PlayableInterface ( Microsoft.Xna.Framework.Game game, GraphicsDeviceManager gr, object parameters ) : System
Update ( GameTime gameTime ) : void
Window_ClientSizeChanged ( object sender, EventArgs e ) : void

보호된 메소드들

메소드 설명
LoadContent ( ) : void

비공개 메소드들

메소드 설명
LoadGlobalMap ( MapCoordinate coordinate ) : void

Loads the Global Map, and drops the player at a particular coordinate

LoadLocation ( Location location, bool forceRegenerate = false ) : void

Load the location

LoadRandomEncounter ( GlobalBiome biome ) : void

Loads a Random encounter at a particular biome

PrepareGrid ( List blocks ) : List

Prepares the grid for drawing by converting the graphical blocks into interface blocks and giving them the coordinates required.

메소드 상세

DetermineMouseAction() 공개 메소드

Translate the state of the mouse and the last actions to determine what the mouse is doing
public DetermineMouseAction ( Microsoft.Xna.Framework.Input.MouseState state ) : MouseActionEnum?
state Microsoft.Xna.Framework.Input.MouseState
리턴 MouseActionEnum?

Draw() 공개 메소드

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

DrawGrid() 공개 메소드

Draws the prepared grid onto the screen
public DrawGrid ( IEnumerable blocks ) : void
blocks IEnumerable
리턴 void

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

LoadContent() 보호된 메소드

protected LoadContent ( ) : void
리턴 void

PerformAction() 공개 메소드

Performs the action and handles feedback
public PerformAction ( MapCoordinate coord, MapItem item, DRObjects actionType, object args ) : void
coord MapCoordinate
item DRObjects.MapItem
actionType DRObjects
args object
리턴 void

PlayableInterface() 공개 메소드

public PlayableInterface ( Microsoft.Xna.Framework.Game game, GraphicsDeviceManager gr, object parameters ) : System
game Microsoft.Xna.Framework.Game
gr GraphicsDeviceManager
parameters object
리턴 System

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

Window_ClientSizeChanged() 공개 메소드

public Window_ClientSizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

프로퍼티 상세

TILEHEIGHT 공개적으로 프로퍼티

public int TILEHEIGHT
리턴 int

TILEWIDTH 공개적으로 프로퍼티

public int TILEWIDTH
리턴 int