Method | Description | |
---|---|---|
CreateLevel ( String name, String filepath, String theme ) : |
Factory Method for level creation. Creates a new content manager for loading a particular theme and loads the level from the provided file.
|
|
CreateWaterDrain ( string name ) : |
||
LevelFactory ( IServiceProvider services, |
Method | Description | |
---|---|---|
BindLevel ( List |
Adds bindings to the activators for their activatables.
|
|
BuildLevel ( List |
Builds the level based on the tile layout. This method setups the basic tile grid, along with creating activators, activatables and moving tiles.
|
|
CreateActivatable ( char tileType, int x, int y ) : Platformer.Tiles.IActivatable |
Creates the different kinds of activatables.
|
|
CreateActivator ( char tileType, int x, int y ) : |
Creates the different kinds of activators.
|
|
CreateButton ( int x, int y ) : |
||
CreateDoorTile ( int x, int y, bool p, TileCollision tileCollision ) : |
||
CreateExit ( int x, int y ) : |
||
CreateLadder ( int x, int y ) : IActivatable | ||
CreateLaser ( int x, int y ) : |
||
CreateLight ( int x, int y ) : IActivatable | ||
CreateMirror ( int x, int y ) : |
||
CreateMoveable ( char tileType, int x, int y ) : |
Creates the different kinds of moveable tiles.
|
|
CreateSlidingTile ( int x, int y, bool isHorizontal, TileCollision collision ) : |
||
CreateSpawner ( int x, int y ) : IActivatable |
Instantiates a player, puts him in the level, and remembers where to put him when he is resurrected.
|
|
CreateSwitch ( int x, int y ) : |
||
CreateTile ( char tileType, int x, int y ) : |
Loads an individual tile's appearance and behavior.
|
|
CreateTile ( string name, TileCollision collision ) : |
Creates a new tile. The other tile loading methods typically chain to this method after performing their special logic.
|
|
CreateVarietyTile ( string baseName, int variationCount, TileCollision collision ) : |
Loads a tile with a random appearance.
|
|
CreateWaterSource ( string name ) : |
||
CreateWheel ( int x, int y ) : |
||
ParseBindings ( |
Reads in all the bindings for the level.
|
|
ParseLevel ( |
Reads in all the lines related to the tile layout from the level file.
|
public CreateLevel ( String name, String filepath, String theme ) : |
||
name | String | |
filepath | String | |
theme | String | |
return |
public CreateWaterDrain ( string name ) : |
||
name | string | |
return |
public LevelFactory ( IServiceProvider services, |
||
services | IServiceProvider | |
dynamicMap | ||
gd | GraphicsDevice | |
return | System |