Atlantis.LevelManager Class
A level manager.
Constructor
Atlantis.LevelManager
()
Methods
add
(
-
name
-
autoload
Add a level to the level manager.
Parameters:
-
name
Altantis.levelInstance of the level to add.
-
autoload
BooleanSets to
true
to load the level.
draw
(
-
gameTime
Draw active levels.
Parameters:
-
gameTime
Atlantis.GameTimeAn instance of GameTime.
get
(
Atlantis.Level
-
nameOrIndex
Gets a level by its index or its name.
Returns:
Atlantis.Level:
Return the level if it exists, otherwise return null.
getLevelByName
(
Atlantis.Level
-
name
Get a level by its name
Parameters:
-
name
StringThe name of the level to load.
Returns:
Atlantis.Level:
Return the level if it exists, otherwise return null.
loadLevel
(
-
levelParam
Add a level to the level manager.
Parameters:
-
levelParam
Altantis.levelInstance of the level to add.
remove
(
-
nameOrIndex
Remove a level by its index, name or instance.
update
(
-
gameTime
Update active level.
Parameters:
-
gameTime
Atlantis.GameTimeAn instance of GameTime.