PCG Lib
Library for procedural content generation
Public Member Functions | Public Attributes | List of all members
skr::pcg::LevelBoundingBox Class Reference

defines the overall extends of a level in 2d. More...

#include <LevelBoundingBox.h>

Public Member Functions

 LevelBoundingBox ()
 default constructor sets all coordinates to (0,0,0) More...
 
 LevelBoundingBox (Point3d center, float width, float length)
 constructor More...
 
 LevelBoundingBox (skr::pcg::Room room)
 constructor calculates bounding box given a single room More...
 
 LevelBoundingBox (std::vector< skr::pcg::Room > rooms)
 constructor calcualtes overall bounding box of a list of rooms More...
 

Public Attributes

Point3d _center
 center point More...
 
Point3d _LLB
 coordinate of LowerLeftBottom More...
 
Point3d _LRB
 coordinate of LowerRightBottom More...
 
Point3d _ULB
 coordinate of UpperLeftBottom More...
 
Point3d _URB
 coordinate of UpprRightBottom More...
 

Detailed Description

defines the overall extends of a level in 2d.

On a plane in x- and z-axis, as y is considered the height. Height is currently not used, as all rooms of a level are on one plane.

Constructor & Destructor Documentation

◆ LevelBoundingBox() [1/4]

skr::pcg::LevelBoundingBox::LevelBoundingBox ( )

default constructor sets all coordinates to (0,0,0)

◆ LevelBoundingBox() [2/4]

skr::pcg::LevelBoundingBox::LevelBoundingBox ( Point3d  center,
float  width,
float  length 
)

constructor

Parameters
centercenter point
widthexted in x-axis
lengthextend in z-axis

◆ LevelBoundingBox() [3/4]

skr::pcg::LevelBoundingBox::LevelBoundingBox ( skr::pcg::Room  room)

constructor calculates bounding box given a single room

Parameters
roomroom level consists of

◆ LevelBoundingBox() [4/4]

skr::pcg::LevelBoundingBox::LevelBoundingBox ( std::vector< skr::pcg::Room rooms)

constructor calcualtes overall bounding box of a list of rooms

Parameters
roomslist of rooms the level consists of

Member Data Documentation

◆ _center

Point3d skr::pcg::LevelBoundingBox::_center

center point

◆ _LLB

Point3d skr::pcg::LevelBoundingBox::_LLB

coordinate of LowerLeftBottom

◆ _LRB

Point3d skr::pcg::LevelBoundingBox::_LRB

coordinate of LowerRightBottom

◆ _ULB

Point3d skr::pcg::LevelBoundingBox::_ULB

coordinate of UpperLeftBottom

◆ _URB

Point3d skr::pcg::LevelBoundingBox::_URB

coordinate of UpprRightBottom


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