From 95e547b0f0c56d22c9314e90139a38e894c48b7a Mon Sep 17 00:00:00 2001
From: prinsij <prinsij@mcmaster.ca>
Date: Fri, 21 Oct 2016 11:35:30 -0500
Subject: [PATCH] store features in level

---
 src/include/level.h | 4 ++++
 src/level.cpp       | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/src/include/level.h b/src/include/level.h
index f6309f6..1eba78e 100644
--- a/src/include/level.h
+++ b/src/include/level.h
@@ -10,6 +10,7 @@
 #include "goldpile.h"
 #include "room.h"
 #include "tunnel.h"
+#include "feature.h"
 
 class Room;
 
@@ -48,6 +49,8 @@ class Level {
 
 		std::vector<Room>& getRooms();
 
+		std::vector<Feature*>& getFeatures();
+
 	private:
 
 		// Store mobs with a notation for how many
@@ -71,6 +74,7 @@ class Level {
 		std::vector<ClockItem> mobs;
 		std::vector<GoldPile> golds;
 		std::vector<Tunnel> tunnels;
+		std::vector<Feature*> features;
 		int genGoldAmount(Generator);
 		void addTunnel(int, int, bool*, bool*, Generator);
 		Coord size;
diff --git a/src/level.cpp b/src/level.cpp
index 44b14c1..098d59e 100644
--- a/src/level.cpp
+++ b/src/level.cpp
@@ -14,6 +14,7 @@
 #include "include/tunnel.h"
 #include "include/terrain.h"
 #include "include/mob.h"
+#include "include/feature.h"
 
 Level::Level(int depth) 
 	: size(getSize())
@@ -27,6 +28,10 @@ Level::Level(int depth)
 	}
 }
 
+std::vector<Feature*>& Level::getFeatures() {
+	return features;
+}
+
 int Level::getDepth() {
 	return depth;
 }
-- 
GitLab