aboutsummaryrefslogtreecommitdiffstats
path: root/include/world.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-12-03 16:30:08 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-12-03 16:30:08 -0500
commitdcd2d1e9ed9df2b67a48acc442c9e816b677b208 (patch)
treebb9da022908f71323bde29ad8787adf097f3b725 /include/world.h
parent67803d1c1ef1bb96a6cdfdfecba943378e0ec5d1 (diff)
moving music to world
Diffstat (limited to 'include/world.h')
-rw-r--r--include/world.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/world.h b/include/world.h
index 952c2e5..11918c8 100644
--- a/include/world.h
+++ b/include/world.h
@@ -83,6 +83,9 @@ protected:
Texturec *bgTex;
+ Mix_Music *bgmObj;
+ char *bgm;
+
public:
/*
@@ -135,6 +138,14 @@ public:
void setBackground(WORLD_BG_TYPE bgt);
/*
+ * Start/stop background music.
+ */
+
+ void setBGM(const char *path);
+ void bgmPlay(void);
+ void bgmStop(void);
+
+ /*
* Looks for the furthest back layer in this world and adds a new layer of width `width` behind it.
*/