C# Class Divine_Right.GameScreens.PlayableInterface

The Actual Game Interface that the user plays in
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
ファイルを表示 Open project: Haedrian/Divine-Right

Public Properties

Property Type Description
TILEHEIGHT int
TILEWIDTH int

Private Properties

Property Type Description
LoadGlobalMap void
LoadLocation void
LoadRandomEncounter void
PrepareGrid List

Public Methods

Method Description
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

Protected Methods

Method Description
LoadContent ( ) : void

Private Methods

Method Description
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.

Method Details

DetermineMouseAction() public method

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
return MouseActionEnum?

Draw() public method

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

DrawGrid() public method

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

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

PerformAction() public method

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
return void

PlayableInterface() public method

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

Update() public method

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

Window_ClientSizeChanged() public method

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

Property Details

TILEHEIGHT public_oe property

public int TILEHEIGHT
return int

TILEWIDTH public_oe property

public int TILEWIDTH
return int