started removing KLib related code:
- assertions - distributions new helper methods worked on stairs worked on grid-walkers worked on navigation
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
#include "../../grid/walk/GridWalkWeighted.h"
|
||||
#include "../../grid/walk/GridWalkLightAtTheEndOfTheTunnel.h"
|
||||
|
||||
TEST(Walk, DISABLED_plot) {
|
||||
TEST(Walk, plot) {
|
||||
//TEST(Walk, DISABLED_plot) {
|
||||
|
||||
Grid<GP> g(20);
|
||||
GridFactory<GP> gf(g);
|
||||
@@ -25,12 +26,24 @@ TEST(Walk, DISABLED_plot) {
|
||||
Floor f2 = fpf.getFloor("2");
|
||||
Stairs s1_2 = fpf.getStairs("1_2");
|
||||
|
||||
|
||||
|
||||
// build the grid
|
||||
gf.addFloor(f1, 20);
|
||||
if (use3D) {
|
||||
gf.addFloor(f2, 340);
|
||||
gf.addStairs(s1_2, 20, 340);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//TODO: write as something simpler? e.g. as box with rotation??
|
||||
PlatformStair pStair;
|
||||
pStair.platform = BBox2(Point2(200, 200), Point2(400,500));
|
||||
pStair.s1 = Stair(Line2( 600,200, 600,350 ), Point2(-200,0));
|
||||
pStair.s2 = Stair(Line2( 600,400, 600,500 ), Point2(-250,0));
|
||||
//gf.buildPlatformStair(pStair, 20, 340);
|
||||
|
||||
gf.removeIsolated();
|
||||
|
||||
// calculate node importance based on the floorplan (walls, ...)
|
||||
@@ -95,7 +108,10 @@ TEST(Walk, DISABLED_plot) {
|
||||
}
|
||||
|
||||
Plot p;
|
||||
|
||||
// show the grid
|
||||
//p.build(g);
|
||||
|
||||
p.addFloor(f1, 20);
|
||||
if (use3D) {
|
||||
p.addFloor(f2, 340);
|
||||
|
||||
Reference in New Issue
Block a user