GridGenerator Methods

MyDungeon

GridGenerator Methods

The GridGenerator type exposes the following members.

Methods
  NameDescription
Protected methodCreateCorridors
Creates two connected corridors to connect rooms on the map
Protected methodCreateRooms
Creates the rooms in the map
Public methodGenerateBoard
Generate a new grid-based dungeon map
Protected methodInstantiateFromArray
Instantiate random prefab from an array of prefabs
Protected methodInstantiateHorizontalOuterWall
Instantiate the horizontal edges of the outer wall
Protected methodInstantiateOuterWalls
Instantiate the outer wall of the map
Protected methodInstantiateTiles
Instantiate all of the objects based on the value in the map array
Protected methodInstantiateVerticalOuterWall
Instantiate the vertical edges of the outer wall
Protected methodSetTilesValuesForCorridors
Adds corridors to the map array
Protected methodSetTilesValuesForRooms

Sets values within rooms in map array to create spawn locations for various objects

Objects include PlayerDungeon, Exit, Monsters and Items

Protected methodSetupCells
Sets the number of cells contained on the map
Protected methodSetupTilesArray
Creates the initial map array filled with impassible terrain
Top
Extension Methods
  NameDescription
Public Extension MethodInvoke
Invoke using a delegate
(Defined by MonoBehaviourExtensions.)
Top
See Also