RpgGame
Console Based RPG game in C#
Loading...
Searching...
No Matches
RpgGame.Generation.Procedures.CentralRoomProcedure Class Reference

Generates a central room in the dungeon. More...

Inheritance diagram for RpgGame.Generation.Procedures.CentralRoomProcedure:
Collaboration diagram for RpgGame.Generation.Procedures.CentralRoomProcedure:

Public Member Functions

 CentralRoomProcedure (int width, int height)
 Initializes a central room procedure.
 
Task ApplyAsync (Level level, DungeonContext context)
 Applies the central room generation to the level.
 

Detailed Description

Generates a central room in the dungeon.

This procedure carves out a single rectangular room positioned at the center of the level. The room is carved out as floor tiles, and its bounds are registered in the context for later use by other procedures (e.g., path generation).

Constructor & Destructor Documentation

◆ CentralRoomProcedure()

RpgGame.Generation.Procedures.CentralRoomProcedure.CentralRoomProcedure ( int  width,
int  height 
)
inline

Initializes a central room procedure.

Parameters
widthThe width of the central room in tiles.
heightThe height of the central room in tiles.

Member Function Documentation

◆ ApplyAsync()

Task RpgGame.Generation.Procedures.CentralRoomProcedure.ApplyAsync ( Level  level,
DungeonContext  context 
)
inline

Applies the central room generation to the level.

Parameters
levelThe level being generated.
contextShared generation state.
Returns
A completed task.

Implements RpgGame.Generation.IDungeonProcedure.

Here is the call graph for this function:

The documentation for this class was generated from the following file: