Dungeon Architect  17.0.0
DungeonArchitect.Builders.BSP.BSPNodeObject Class Reference

Public Member Functions

void Split (float splitRatio, System.Random random)
 This function assumes that the cell is big enough to split. Make sure to call CanSplit function before calling this More...
 
bool MustSplit (int maxSize)
 Check if it is required to split this node. This happens if the size is greater than the max allowed room size. In that case a split is required More...
 
bool CanSplit (int minSize)
 

Public Attributes

Rectangle bounds
 
BSPNodeObject[] children = new BSPNodeObject[0]
 
BSPNodeObject parent
 
System.Guid id = System.Guid.NewGuid()
 
int depthFromRoot
 
int padding
 
bool horizontalSplit = false
 
Color debugColor = Color.blue
 
bool discarded = false
 
List< BSPNodeObjectconnectedRooms = new List<BSPNodeObject>()
 
NodeConnection[] subtreeLeafConnections = new NodeConnection[0]
 

Properties

Rectangle PaddedBounds [get]
 

Detailed Description

Definition at line 21 of file BSPDungeonBuilder.cs.

Member Function Documentation

◆ MustSplit()

bool DungeonArchitect.Builders.BSP.BSPNodeObject.MustSplit ( int  maxSize)

Check if it is required to split this node. This happens if the size is greater than the max allowed room size. In that case a split is required

Parameters
maxSize
Returns

Definition at line 108 of file BSPDungeonBuilder.cs.

◆ Split()

void DungeonArchitect.Builders.BSP.BSPNodeObject.Split ( float  splitRatio,
System.Random  random 
)

This function assumes that the cell is big enough to split. Make sure to call CanSplit function before calling this

Definition at line 51 of file BSPDungeonBuilder.cs.


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