Skip to content
Snippets Groups Projects
Commit 3f35eea5 authored by Ori Almog's avatar Ori Almog
Browse files

adjPass

parent b98cc949
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,8 @@ class Level { ...@@ -59,6 +59,8 @@ class Level {
int delay; 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 int MAX_ROOMS = 9;
const double GOLD_CHANCE = .333; const double GOLD_CHANCE = .333;
const double ROOM_EXIST_CHANCE = 0.9; const double ROOM_EXIST_CHANCE = 0.9;
......
...@@ -345,6 +345,12 @@ std::vector<Coord> Level::traceBack(Coord end, Coord start){ ...@@ -345,6 +345,12 @@ std::vector<Coord> Level::traceBack(Coord end, Coord start){
path.push_back(start.copy()); path.push_back(start.copy());
return path; return path;
}
std::vector<Coord> Level::getAdjPassable(Coord s){
} }
Coord Level::throwLocation(Coord start, Coord dir){ Coord Level::throwLocation(Coord start, Coord dir){
......
...@@ -13,7 +13,7 @@ MasterController::MasterController() ...@@ -13,7 +13,7 @@ MasterController::MasterController()
void MasterController::run() { void MasterController::run() {
const int spacer = 5; const int spacer = 5;
std::cout << "Welcome to Rogue Reborn!" << std::endl; std::cout << "Welcome to Rogue Reborn!" << std::endl;
TCODConsole::setCustomFont("assets/terminal.png"); TCODConsole::setCustomFont("assets/terminal .png");
//Init console //Init console
Coord lSize = Level::getSize(); Coord lSize = Level::getSize();
TCODConsole::initRoot(lSize[0], lSize[1] + spacer, "Rogue Reborn", false); TCODConsole::initRoot(lSize[0], lSize[1] + spacer, "Rogue Reborn", false);
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment