C# Class tetris.Menu

Datei anzeigen Open project: ttocs7/tetris Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
Menu ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
Menu ( List items ) : System
Update ( GameTime gameTime, bool escape ) : int

Private Methods

Method Description
DrawString ( string str, bool selected, int yPos ) : void
ResetSelection ( ) : void
transition ( int dir, GameTime gameTime ) : void

Method Details

Draw() public method

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

Menu() public method

public Menu ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
return System

Menu() public method

public Menu ( List items ) : System
items List
return System

Update() public method

public Update ( GameTime gameTime, bool escape ) : int
gameTime Microsoft.Xna.Framework.GameTime
escape bool
return int