25 int a,
int x,
int z,
int i);
30 bool isWall(
unsigned long sector);
31 long getSector(
float x,
float z,
float* floor,
float* ceiling);
35 float x2,
float y2,
float z2);
69 std::unique_ptr<BoundingBox>
bbox;
70 std::unique_ptr<RoomMesh>
mesh;
78 std::vector<std::unique_ptr<RoomSprite>>
sprites;
79 std::vector<std::unique_ptr<StaticModel>>
models;
80 std::vector<std::unique_ptr<Portal>>
portals;
81 std::vector<std::unique_ptr<Sector>>
sectors;
void getHeightAtPosition(float x, float *y, float z)
bool isWall(unsigned long sector)
std::unique_ptr< RoomMesh > mesh
void addModel(StaticModel *s)
static bool getShowRoomSprites()
static bool showRoomGeometry
Portal & getPortal(unsigned long index)
static void setShowRoomModels(bool s)
static bool getShowRoomModels()
std::vector< std::unique_ptr< StaticModel > > models
unsigned long sizePortals()
static bool showBoundingBox
void addSprite(RoomSprite *s)
std::unique_ptr< BoundingBox > bbox
long getSector(float x, float z, float *floor, float *ceiling)
BoundingBox & getBoundingBox()
void addPortal(Portal *p)
static bool getShowRoomGeometry()
std::vector< std::unique_ptr< Sector > > sectors
static void setShowRoomSprites(bool s)
std::vector< std::unique_ptr< RoomSprite > > sprites
Room(glm::vec3 _pos, BoundingBox *_bbox, RoomMesh *_mesh, unsigned int f, int a, int x, int z, int i)
void display(glm::mat4 VP)
void addSector(Sector *s)
static bool showRoomModels
static void setShowRoomGeometry(bool s)
std::vector< std::unique_ptr< Portal > > portals
static bool getShowBoundingBox()
static void setShowBoundingBox(bool s)
int getAdjoiningRoom(float x, float y, float z, float x2, float y2, float z2)
static bool showRoomSprites