Class LevelDescription<TRoom, TRoomDescription>
Inheritance
System.Object
LevelDescription<TRoom, TRoomDescription>
Assembly: Edgar.dll
Syntax
public abstract class LevelDescription<TRoom, TRoomDescription> : Object, ILevelDescription<TRoom> where TRoomDescription : IRoomDescription
Type Parameters
Name |
Description |
TRoom |
|
TRoomDescription |
|
Constructors
LevelDescription()
Declaration
protected LevelDescription()
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, TRoomDescription)
Adds a given room to the level description.
Declaration
public void AddRoom(TRoom room, TRoomDescription roomDescription)
Parameters
Type |
Name |
Description |
TRoom |
room |
|
TRoomDescription |
roomDescription |
|
GetGraph()
Gets the graph of rooms with all rooms (including corridor rooms)
Declaration
public IGraph<TRoom> GetGraph()
Returns
Type |
Description |
IGraph<TRoom> |
|
GetGraphWithoutCorridors()
Declaration
public IGraph<TRoom> GetGraphWithoutCorridors()
Returns
Type |
Description |
IGraph<TRoom> |
|
GetRoomDescription(TRoom)
Get room description of a given room.
Declaration
public TRoomDescription GetRoomDescription(TRoom node)
Parameters
Type |
Name |
Description |
TRoom |
node |
|
Returns
Type |
Description |
TRoomDescription |
|
Explicit Interface Implementations
ILevelDescription<TRoom>.GetRoomDescription(TRoom)
Declaration
IRoomDescription ILevelDescription<TRoom>.GetRoomDescription(TRoom node)
Parameters
Type |
Name |
Description |
TRoom |
node |
|
Returns
Implements