C# Class Divine_Right.GameScreens.PlayableInterface

The Actual Game Interface that the user plays in
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Afficher le fichier Open project: Haedrian/Divine-Right

Méthodes publiques

Свойство Type Description
TILEHEIGHT int
TILEWIDTH int

Private Properties

Свойство Type Description
LoadGlobalMap void
LoadLocation void
LoadRandomEncounter void
PrepareGrid List

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
LoadContent ( ) : void

Private Methods

Méthode 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 méthode

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
Résultat MouseActionEnum?

Draw() public méthode

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

DrawGrid() public méthode

Draws the prepared grid onto the screen
public DrawGrid ( IEnumerable blocks ) : void
blocks IEnumerable
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

LoadContent() protected méthode

protected LoadContent ( ) : void
Résultat void

PerformAction() public méthode

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
Résultat void

PlayableInterface() public méthode

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

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Window_ClientSizeChanged() public méthode

public Window_ClientSizeChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

Property Details

TILEHEIGHT public_oe property

public int TILEHEIGHT
Résultat int

TILEWIDTH public_oe property

public int TILEWIDTH
Résultat int