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

Spawns weapons (swords and double swords) at random locations in the dungeon. More...

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

Public Member Functions

 AddWeaponsProcedure (int SwordCount=2, int DoubleSwordCount=1)
 Initializes the weapons spawning procedure.
 
async Task ApplyAsync (Level level, DungeonContext context)
 Applies the weapon spawning to the level.
 

Detailed Description

Spawns weapons (swords and double swords) at random locations in the dungeon.

This procedure places various sword-type weapons at random walkable positions throughout the level, allowing the player to upgrade their combat capabilities.

Constructor & Destructor Documentation

◆ AddWeaponsProcedure()

RpgGame.Generation.Procedures.AddWeaponsProcedure.AddWeaponsProcedure ( int  SwordCount = 2,
int  DoubleSwordCount = 1 
)
inline

Initializes the weapons spawning procedure.

Parameters
SwordCountThe number of one-handed swords to spawn. Defaults to 2.
DoubleSwordCountThe number of two-handed swords to spawn. Defaults to 1.

Member Function Documentation

◆ ApplyAsync()

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

Applies the weapon spawning to the level.

Parameters
levelThe level being generated.
contextShared generation state.
Returns
A task that completes when all weapons have been placed.

Implements RpgGame.Generation.IDungeonProcedure.

Here is the call graph for this function:

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