Class MapDescription<TRoom>
Description of a level.
Inheritance
System.Object
MapDescription<TRoom>
Implements
IMapDescription<TRoom>
Namespace: Edgar.Legacy.Core.MapDescriptions
Assembly: Edgar.dll
Syntax
public class MapDescription<TRoom> : Object, IMapDescription<TRoom>
Type Parameters
| Name | Description |
|---|---|
| TRoom |
Constructors
MapDescription()
Declaration
public MapDescription()
Methods
AddConnection(TRoom, TRoom)
Adds a connection between given two rooms.
Declaration
public void AddConnection(TRoom room1, TRoom room2)
Parameters
| Type | Name | Description |
|---|---|---|
| TRoom | room1 | |
| TRoom | room2 |
AddRoom(TRoom, IRoomDescription)
Adds a given room to the level description.
Declaration
public void AddRoom(TRoom room, IRoomDescription roomDescription)
Parameters
| Type | Name | Description |
|---|---|---|
| TRoom | room | |
| IRoomDescription | roomDescription |
GetGraph()
Gets the graph of rooms with all rooms (including corridor rooms)
Declaration
public IGraph<TRoom> GetGraph()
Returns
| Type | Description |
|---|---|
| IGraph<TRoom> |
GetRoomDescription(TRoom)
Get room description of a given room.
Declaration
public IRoomDescription GetRoomDescription(TRoom node)
Parameters
| Type | Name | Description |
|---|---|---|
| TRoom | node |
Returns
| Type | Description |
|---|---|
| IRoomDescription |
GetStageOneGraph()
Gets a graph of rooms for the first stage of the generate (excluding corridor rooms)
Declaration
public IGraph<TRoom> GetStageOneGraph()
Returns
| Type | Description |
|---|---|
| IGraph<TRoom> |