minor changes to floorplan
fixed some compile issues worked on nav-meshes added some tests
This commit is contained in:
@@ -130,6 +130,10 @@ namespace Floorplan {
|
||||
default: throw Exception("out of bounds");
|
||||
}
|
||||
}
|
||||
/** same z-value for all points? */
|
||||
bool isLeveled() const {
|
||||
return (p1.z == p2.z) && (p2.z == p3.z) && (p3.z == p4.z);
|
||||
}
|
||||
};
|
||||
|
||||
/** additional type-info for obstacles */
|
||||
@@ -202,6 +206,7 @@ namespace Floorplan {
|
||||
/** describes one floor within the map, starting at a given height */
|
||||
struct Floor {
|
||||
|
||||
bool enabled = true;
|
||||
float atHeight; // the floor's starting height
|
||||
float height; // the floor's total height (from start)
|
||||
std::string name; // the floor's name
|
||||
|
||||
Reference in New Issue
Block a user