Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
Slasher.Map.Map Class Reference
Inheritance diagram for Slasher.Map.Map:
Inheritance graph
Collaboration diagram for Slasher.Map.Map:
Collaboration graph

Public Member Functions

int GetMapWidth ()
 
int GetMapHeight ()
 
void SetCurrentRoom (Room room)
 
Room GetCurrentRoom ()
 
void SetMapParameters (MapParametersSO mapParametersSO)
 
void AddRoom (Room room)
 
void RemoveRoom (Room room)
 
List< RoomGetRooms ()
 
int GetNumberOfQuadrants ()
 
int GetNumberOfRooms ()
 
List< RoomGetDeadEnds ()
 
List< RoomGetStartingRoomCandidates ()
 
int GetRoomCountOfType (Room.RoomType type)
 
List< RoomGetRoomsOfType (Room.RoomType type)
 
int GetNumberOfLargeRooms ()
 
Quadrant[,] GetMapQuadrants ()
 
Quadrant GetQuadrantFromPosition (Vector2Int position)
 
void Start ()
 
void InitalizeMap (MapParametersSO mapParametersSO)
 
Quadrant CreateQuadrant (Vector2Int postion)
 
void DebugMapString ()
 
void UpdateCurrentRoom (Room room)
 
void DisplayMap ()
 tell all the rooms to get their prefabs, instantiate them, aswell as their doors, in the right places on the right angles
 

Private Member Functions

void Door_OnChangeRoom (object sender, Door.OnChangeRoomArgs e)
 
void Update ()
 
void OnDisable ()
 

Private Attributes

Quadrant[,] _mapQuadrants
 
List< Room_rooms
 
Room _currentRoom
 
MapParametersSO _mapParametersSO
 
string _debugMap
 

Member Function Documentation

◆ AddRoom()

void Slasher.Map.Map.AddRoom ( Room room)

◆ CreateQuadrant()

Quadrant Slasher.Map.Map.CreateQuadrant ( Vector2Int postion)

◆ DebugMapString()

void Slasher.Map.Map.DebugMapString ( )

◆ DisplayMap()

void Slasher.Map.Map.DisplayMap ( )

tell all the rooms to get their prefabs, instantiate them, aswell as their doors, in the right places on the right angles

Here is the call graph for this function:

◆ Door_OnChangeRoom()

void Slasher.Map.Map.Door_OnChangeRoom ( object sender,
Door.OnChangeRoomArgs e )
private
Here is the call graph for this function:

◆ GetCurrentRoom()

Room Slasher.Map.Map.GetCurrentRoom ( )

◆ GetDeadEnds()

List< Room > Slasher.Map.Map.GetDeadEnds ( )
Here is the call graph for this function:

◆ GetMapHeight()

int Slasher.Map.Map.GetMapHeight ( )

◆ GetMapQuadrants()

Quadrant[,] Slasher.Map.Map.GetMapQuadrants ( )

◆ GetMapWidth()

int Slasher.Map.Map.GetMapWidth ( )

◆ GetNumberOfLargeRooms()

int Slasher.Map.Map.GetNumberOfLargeRooms ( )
Here is the call graph for this function:

◆ GetNumberOfQuadrants()

int Slasher.Map.Map.GetNumberOfQuadrants ( )

◆ GetNumberOfRooms()

int Slasher.Map.Map.GetNumberOfRooms ( )

◆ GetQuadrantFromPosition()

Quadrant Slasher.Map.Map.GetQuadrantFromPosition ( Vector2Int position)

◆ GetRoomCountOfType()

int Slasher.Map.Map.GetRoomCountOfType ( Room.RoomType type)
Here is the call graph for this function:

◆ GetRooms()

List< Room > Slasher.Map.Map.GetRooms ( )

◆ GetRoomsOfType()

List< Room > Slasher.Map.Map.GetRoomsOfType ( Room.RoomType type)
Here is the call graph for this function:

◆ GetStartingRoomCandidates()

List< Room > Slasher.Map.Map.GetStartingRoomCandidates ( )
Here is the call graph for this function:

◆ InitalizeMap()

void Slasher.Map.Map.InitalizeMap ( MapParametersSO mapParametersSO)
Here is the call graph for this function:

◆ OnDisable()

void Slasher.Map.Map.OnDisable ( )
private
Here is the call graph for this function:

◆ RemoveRoom()

void Slasher.Map.Map.RemoveRoom ( Room room)

◆ SetCurrentRoom()

void Slasher.Map.Map.SetCurrentRoom ( Room room)

◆ SetMapParameters()

void Slasher.Map.Map.SetMapParameters ( MapParametersSO mapParametersSO)

◆ Start()

void Slasher.Map.Map.Start ( )
Here is the call graph for this function:

◆ Update()

void Slasher.Map.Map.Update ( )
private

◆ UpdateCurrentRoom()

void Slasher.Map.Map.UpdateCurrentRoom ( Room room)
Here is the call graph for this function:

Member Data Documentation

◆ _currentRoom

Room Slasher.Map.Map._currentRoom
private

◆ _debugMap

string Slasher.Map.Map._debugMap
private

◆ _mapParametersSO

MapParametersSO Slasher.Map.Map._mapParametersSO
private

◆ _mapQuadrants

Quadrant [,] Slasher.Map.Map._mapQuadrants
private

◆ _rooms

List<Room> Slasher.Map.Map._rooms
private

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