removed gridSize from the template arguments

- not needed and code much cleaner
some minor changes
new test-cases
This commit is contained in:
2016-01-25 15:53:12 +01:00
parent 9947dced15
commit 5aedce47f1
16 changed files with 167 additions and 66 deletions

View File

@@ -10,10 +10,10 @@
TEST(GridFactory, create) {
Grid<20, GP> g;
Grid<20, GP> gInv;
Grid<GP> g(20);
Grid<GP> gInv(20);
GridFactory<20, GP> gf(g);
GridFactory<GP> gf(g);
FloorplanFactorySVG fpf(getDataFile("fp1.svg"), 4);
Floor f1 = fpf.getFloor("1");
Floor f2 = fpf.getFloor("2");
@@ -24,7 +24,7 @@ TEST(GridFactory, create) {
gf.addStairs(s1_2, 20, 340);
gf.removeIsolated();
GridFactory<20, GP> gfInv(gInv);
GridFactory<GP> gfInv(gInv);
gfInv.addInverted(g, 20);
gfInv.addInverted(g, 340);