PCG Lib
Library for procedural content generation
LevelBoundingBox.h
Go to the documentation of this file.
1 #ifndef SKR_PCG_LEVEL_BOUNDING_BOX
2 #define SKR_PCG_LEVEL_BOUNDING_BOX
3 
4 #include <array>
5 #include "Definitions.h"
6 #include "Room.h"
7 
8 namespace skr
9 {
10 namespace pcg
11 {
14 
15  class __declspec(dllexport) LevelBoundingBox
16  {
17  public:
23 
27 
32  LevelBoundingBox(Point3d center, float width, float length);
33 
38 
42  LevelBoundingBox(std::vector<skr::pcg::Room> rooms);
43  };
44 
45 }
46 }
47 
48 #endif
Room.h
Definitions.h
skr::pcg::Room
specifies position, extends and relations to neighboring rooms
Definition: Room.h:50
skr::pcg::Point3d
std::array< float, 3 > Point3d
c 2d vector
Definition: Definitions.h:16
skr::pcg::LevelBoundingBox::_LLB
Point3d _LLB
coordinate of LowerLeftBottom
Definition: LevelBoundingBox.h:19
skr::pcg::LevelBoundingBox::_URB
Point3d _URB
coordinate of UpprRightBottom
Definition: LevelBoundingBox.h:22
skr::pcg::LevelBoundingBox::_center
Point3d _center
center point
Definition: LevelBoundingBox.h:18
skr::pcg::LevelBoundingBox::LevelBoundingBox
LevelBoundingBox()
default constructor sets all coordinates to (0,0,0)
Definition: LevelBoundingBox.cpp:4
skr::pcg::LevelBoundingBox::_ULB
Point3d _ULB
coordinate of UpperLeftBottom
Definition: LevelBoundingBox.h:21
skr::pcg::LevelBoundingBox
defines the overall extends of a level in 2d.
Definition: LevelBoundingBox.h:16
skr
Definition: Definitions.h:7
skr::pcg::LevelBoundingBox::_LRB
Point3d _LRB
coordinate of LowerRightBottom
Definition: LevelBoundingBox.h:20