From 3f35eea5b781a35cf4068cd8b9967c324ddb0691 Mon Sep 17 00:00:00 2001 From: Or Almog <almogo@mcmaster.ca> Date: Fri, 21 Oct 2016 01:21:09 -0400 Subject: [PATCH] adjPass --- src/include/level.h | 2 ++ src/level.cpp | 6 ++++++ src/mastercontroller.cpp | 2 +- src/scores.txt | 5 ----- 4 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 src/scores.txt diff --git a/src/include/level.h b/src/include/level.h index 371bb5e..4e7c212 100644 --- a/src/include/level.h +++ b/src/include/level.h @@ -59,6 +59,8 @@ class Level { int delay; }; + static const Coord nearby[8] = { Coord(-1,-1), Coord(0,-1), Coord(1,-1), Coord(1,0), Coord(1,1), Coord(0,1), Coord(-1,1), Coord(-1,0) }; + const int MAX_ROOMS = 9; const double GOLD_CHANCE = .333; const double ROOM_EXIST_CHANCE = 0.9; diff --git a/src/level.cpp b/src/level.cpp index 87d27ba..6d5ae91 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -345,6 +345,12 @@ std::vector<Coord> Level::traceBack(Coord end, Coord start){ path.push_back(start.copy()); return path; +} + +std::vector<Coord> Level::getAdjPassable(Coord s){ + + + } Coord Level::throwLocation(Coord start, Coord dir){ diff --git a/src/mastercontroller.cpp b/src/mastercontroller.cpp index 63b046e..a372ce6 100644 --- a/src/mastercontroller.cpp +++ b/src/mastercontroller.cpp @@ -13,7 +13,7 @@ MasterController::MasterController() void MasterController::run() { const int spacer = 5; std::cout << "Welcome to Rogue Reborn!" << std::endl; - TCODConsole::setCustomFont("assets/terminal.png"); + TCODConsole::setCustomFont("assets/terminal .png"); //Init console Coord lSize = Level::getSize(); TCODConsole::initRoot(lSize[0], lSize[1] + spacer, "Rogue Reborn", false); diff --git a/src/scores.txt b/src/scores.txt deleted file mode 100644 index 66fcc16..0000000 --- a/src/scores.txt +++ /dev/null @@ -1,5 +0,0 @@ -0,-1,quark,unknown, -0,-1,qwerty,unknown -0,-1,brucethebold,unknown -0,-1,arglebargle,unknown -1350,8,robert the mediocre,was killed by a grue -- GitLab