C# Class geek.GameEngine.GameStoryBoard

Manages the game's storyboard and transitions between scenes.
Mostra file Open project: impworks/xna.geek.engine

Public Properties

Property Type Description
Scenes GameScene>.Dictionary

Public Methods

Method Description
AddLevel ( string name, GameScene level ) : void

Create a new level and add it to the storyboard.

GotoLevel ( string name ) : void

Go to a new level.

LevelExists ( string name ) : bool

Checks whether a level with such name exists.

RemoveLevel ( string name ) : void

Remove a specific level from storyboard.

RestartLevel ( ) : void

Restart the current level.

Private Methods

Method Description
GameStoryBoard ( ) : System

Method Details

AddLevel() public static method

Create a new level and add it to the storyboard.
public static AddLevel ( string name, GameScene level ) : void
name string Desired level name (must be unique across the game).
level geek.GameEngine.Visuals.GameScene Level.
return void

GotoLevel() public static method

Go to a new level.
public static GotoLevel ( string name ) : void
name string Level name.
return void

LevelExists() public static method

Checks whether a level with such name exists.
public static LevelExists ( string name ) : bool
name string Level name.
return bool

RemoveLevel() public static method

Remove a specific level from storyboard.
public static RemoveLevel ( string name ) : void
name string Level.
return void

RestartLevel() public static method

Restart the current level.
public static RestartLevel ( ) : void
return void

Property Details

Scenes public_oe static_oe property

The levels used in the game.
public static Dictionary Scenes
return GameScene>.Dictionary