Raymond Maarloeve
Loading...
Searching...
No Matches
ClueSpawner Class Reference

Responsible for spawning a clue near the building of the murderer NPC. More...

Public Member Functions

 ClueSpawner (Terrain terrain, int tileSize)
 Initializes a new instance of the ClueSpawner class.
 
void SpawnClues (Tile[,] tiles, List< Tile > allTiles, List< ClueSetup > clues)
 Spawns a clue next to the murderer's house entrance on a suitable free tile.
 

Detailed Description

Responsible for spawning a clue near the building of the murderer NPC.

Constructor & Destructor Documentation

◆ ClueSpawner()

ClueSpawner.ClueSpawner ( Terrain  terrain,
int  tileSize 
)

Initializes a new instance of the ClueSpawner class.

Parameters
terrainReference to the terrain used for clue placement.
tileSizeSize of a tile in world units.

Member Function Documentation

◆ SpawnClues()

void ClueSpawner.SpawnClues ( Tile  tiles[,],
List< Tile allTiles,
List< ClueSetup clues 
)

Spawns a clue next to the murderer's house entrance on a suitable free tile.

Parameters
tiles2D grid of map tiles.
allTilesFlat list of all tiles (not used here, but required for consistency).
cluesList of clue prefabs to choose from.

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