C# Class CrisisAtSwissStation.MenuScreen

Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
Disabled Color
Selected Color
Unselected Color
controller MenuController
ms Microsoft.Xna.Framework.Input.MouseState
selected int

Protected Properties

Property Type Description
distY float
font Microsoft.Xna.Framework.Graphics.SpriteFont
initialX float
initialY float
options List
returnSelected bool
sgconnect bool
title string

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void

Draw current menu, including state

LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
MenuScreen ( float x, float y, float vertDist, bool sgConnect = false ) : System

ReturnCommand ( ) : MenuOption

Returns selected command. Null if not returning command.

Update ( ) : void

Method Details

Draw() public method

Draw current menu, including state
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
return void

MenuScreen() public method

public MenuScreen ( float x, float y, float vertDist, bool sgConnect = false ) : System
x float X coordinate of first option
y float Y coordinate of first option
vertDist float Y distance to next option
sgConnect bool
return System

ReturnCommand() public method

Returns selected command. Null if not returning command.
public ReturnCommand ( ) : MenuOption
return MenuOption

Update() public method

public Update ( ) : void
return void

Property Details

Disabled public static property

public static Color Disabled
return Color

Selected public static property

public static Color Selected
return Color

Unselected public static property

public static Color Unselected
return Color

controller public property

public MenuController,CrisisAtSwissStation controller
return MenuController

distY protected property

Y distance between menu options
protected float distY
return float

font protected property

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
return Microsoft.Xna.Framework.Graphics.SpriteFont

initialX protected property

protected float initialX
return float

initialY protected property

protected float initialY
return float

ms public property

public MouseState,Microsoft.Xna.Framework.Input ms
return Microsoft.Xna.Framework.Input.MouseState

options protected property

Options player has to choose
protected List options
return List

returnSelected protected property

protected bool returnSelected
return bool

selected public property

public int selected
return int

sgconnect protected property

protected bool sgconnect
return bool

title protected property

Title of menu
protected string title
return string