pyherc.generators.utils

Utility classes

BSPSection

BSPSection

class pyherc.generators.utils.BSPSection(corner1=None, corner2=None, parent=None, direction=None)

Class used to divide area in sections

getAreaQueue()

Gets list of BSPSections, starting from leaves and progressing towards root

getCenter()

Calculates center of the BSPSection @return: center point

split(min_size=(6, 6), direction=None)

Split BSPSection in two Links two new BSPSections into this one @param min_size: minimum size to split into @param direction: horizontal (1) / vertical split (2)

Table Of Contents

Previous topic

pyherc.generators.item

Next topic

pyherc.generators.level

This Page