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

Generates multiple random chamber rooms in the dungeon. More...

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

Public Member Functions

 ChambersProcedure (int roomCount)
 Initializes a chambers generation procedure.
 
Task ApplyAsync (Level level, DungeonContext context)
 Applies the chambers generation to the level.
 

Detailed Description

Generates multiple random chamber rooms in the dungeon.

This procedure attempts to create random rectangular rooms that do not overlap with existing rooms. Rooms are carved out as floor tiles and registered for later coordination.

Constructor & Destructor Documentation

◆ ChambersProcedure()

RpgGame.Generation.Procedures.ChambersProcedure.ChambersProcedure ( int  roomCount)
inline

Initializes a chambers generation procedure.

Parameters
roomCountThe maximum number of chambers to attempt to generate.

Member Function Documentation

◆ ApplyAsync()

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

Applies the chambers 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: