Mad Level Manager
 All Classes Namespaces Functions Enumerations Enumerator Properties
Public Types | Static Public Member Functions | Properties | List of all members
MadLevelManager.MadLevel Class Reference

Public Types

enum  Type { Other, Level, Extra }
 

Static Public Member Functions

static void ReloadCurrent ()
 Reloads current level. More...
 
static void LoadLevelByName (string levelName)
 Loads level by its name defined in level configuration. More...
 
static bool HasNext ()
 Determines whether there is next level present in level configuration (are there any other levels further ahead?) More...
 
static bool HasNext (Type levelType)
 Determines whether there is next level present of the specified levelType in level configuration (are there any other levels further ahead?) More...
 
static void LoadNext ()
 Loads next level defined in level configuration. More...
 
static void LoadNext (Type levelType)
 Loads first level with type More...
 
static bool HasPrevious ()
 Determines whether there is previous level present in level configuration (are there any other levels before this one?) More...
 
static bool HasPrevious (Type levelType)
 Determines whether there is previous level present of the specified levelType in level configuration (are there any other levels further ahead?) More...
 
static void LoadPrevious ()
 Loads previous level defined in level configuration. More...
 
static void LoadPrevious (Type levelType)
 Loads first level with type More...
 
static bool HasFirst ()
 Tells if there is at least one level set in active level configuration. More...
 
static bool HasFirst (Type levelType)
 Tells if there is at least one level of type More...
 
static void LoadFirst ()
 Loads the first level set in level configuration. More...
 
static void LoadFirst (Type levelType)
 Loads the first level of type More...
 

Properties

static MadLevelConfiguration activeConfiguration [get]
 Gets the active configuration. More...
 
static bool hasActiveConfiguration [get]
 Gets a value indicating whether application has active configuration. More...
 
static string arguments [get, set]
 Gets or sets this level arguments. More...
 
static string currentLevelName [get, set]
 Gets the name of the current level. More...
 
static string lastLevelName [get, set]
 Gets or sets the name of the last visited level. More...
 

Member Function Documentation

static bool MadLevelManager.MadLevel.HasFirst ( )
static

Tells if there is at least one level set in active level configuration.

Returns
true if there is at least one level configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasFirst ( Type  levelType)
static

Tells if there is at least one level of type

levelType set in active level configuration.

Parameters
levelTypeLevel type to find.
Returns
true if there is at least one level of given type configured; otherwise, false.
static bool MadLevelManager.MadLevel.HasNext ( )
static

Determines whether there is next level present in level configuration (are there any other levels further ahead?)

Returns
true if next level is available; otherwise, false.
static bool MadLevelManager.MadLevel.HasNext ( Type  levelType)
static

Determines whether there is next level present of the specified levelType in level configuration (are there any other levels further ahead?)

Returns
true if next level is present; otherwise, false.
Parameters
levelTypeType of next level to look after.
static bool MadLevelManager.MadLevel.HasPrevious ( )
static

Determines whether there is previous level present in level configuration (are there any other levels before this one?)

Returns
true if previous level is available; otherwise, false.
static bool MadLevelManager.MadLevel.HasPrevious ( Type  levelType)
static

Determines whether there is previous level present of the specified levelType in level configuration (are there any other levels further ahead?)

Returns
true if previous level is present; otherwise, false.
Parameters
levelTypeType of previous level to look after.
static void MadLevelManager.MadLevel.LoadFirst ( )
static

Loads the first level set in level configuration.

static void MadLevelManager.MadLevel.LoadFirst ( Type  levelType)
static

Loads the first level of type

levelType set in level configuration.

Parameters
levelTypeLevel type.
static void MadLevelManager.MadLevel.LoadLevelByName ( string  levelName)
static

Loads level by its name defined in level configuration.

Parameters
levelNameLevel name.
static void MadLevelManager.MadLevel.LoadNext ( )
static

Loads next level defined in level configuration.

static void MadLevelManager.MadLevel.LoadNext ( Type  levelType)
static

Loads first level with type

levelType found after current level in level configuration.

Parameters
levelTypeLevel type to load.
static void MadLevelManager.MadLevel.LoadPrevious ( )
static

Loads previous level defined in level configuration.

static void MadLevelManager.MadLevel.LoadPrevious ( Type  levelType)
static

Loads first level with type

levelType found before current level in level configuration.

Parameters
levelTypeLevel type to load.
static void MadLevelManager.MadLevel.ReloadCurrent ( )
static

Reloads current level.

Property Documentation

MadLevelConfiguration MadLevelManager.MadLevel.activeConfiguration
staticget

Gets the active configuration.

The active configuration.

string MadLevelManager.MadLevel.arguments
staticgetset

Gets or sets this level arguments.

The arguments.

string MadLevelManager.MadLevel.currentLevelName
staticgetset

Gets the name of the current level.

The name of the current level.

bool MadLevelManager.MadLevel.hasActiveConfiguration
staticget

Gets a value indicating whether application has active configuration.

true if has active configuration; otherwise, false.

string MadLevelManager.MadLevel.lastLevelName
staticgetset

Gets or sets the name of the last visited level.

The name of the last visited level.


The documentation for this class was generated from the following file: