C# Class RaceGame.Menu.Menu

Inheritance: IMenu
Show file Open project: cjohnsson/Racing-Game Class Usage Examples

Protected Properties

Property Type Description
Credits string
Description string
MenuItems RaceGame.Menu.MenuItem[]
RolloverUtility RolloverUtility
instructionsPositionX int
instructionsPositionY int

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
ScrollDown ( ) : void
ScrollUp ( ) : void

Protected Methods

Method Description
Initilize ( ) : void
Menu ( ) : System.Collections.Generic
Menu ( Microsoft.Xna.Framework.Graphics.Texture2D backgroundImage, SpriteFont font ) : System.Collections.Generic

Private Methods

Method Description
MakePositions ( int xPosition, int yPosition ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Initilize() protected abstract method

protected abstract Initilize ( ) : void
return void

Menu() protected method

protected Menu ( ) : System.Collections.Generic
return System.Collections.Generic

Menu() protected method

protected Menu ( Microsoft.Xna.Framework.Graphics.Texture2D backgroundImage, SpriteFont font ) : System.Collections.Generic
backgroundImage Microsoft.Xna.Framework.Graphics.Texture2D
font Microsoft.Xna.Framework.Graphics.SpriteFont
return System.Collections.Generic

ScrollDown() public method

public ScrollDown ( ) : void
return void

ScrollUp() public method

public ScrollUp ( ) : void
return void

Property Details

Credits protected property

protected string Credits
return string

Description protected property

protected string Description
return string

MenuItems protected property

protected MenuItem[],RaceGame.Menu MenuItems
return RaceGame.Menu.MenuItem[]

RolloverUtility protected property

protected RolloverUtility,RaceGame.Menu RolloverUtility
return RolloverUtility

instructionsPositionX protected property

protected int instructionsPositionX
return int

instructionsPositionY protected property

protected int instructionsPositionY
return int