aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index 88da5ec..dd395ca 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -54,6 +54,10 @@ Game::Game(std::string const& path) : current(path) {
ifs >> tok;
nPerWave = std::atoi(tok.c_str());
}
+ if (tok == "BACKGROUND") {
+ ifs >> tok;
+ background = tok;
+ }
}
ifs.close();
enemies = new std::vector<Entity>;
@@ -334,3 +338,7 @@ std::string const& Game::getNext() const {
std::string const& Game::getCurrent() const {
return current;
}
+
+std::string const& Game::getBackground() const {
+ return background;
+}