From dcd2d1e9ed9df2b67a48acc442c9e816b677b208 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 3 Dec 2015 16:30:08 -0500 Subject: moving music to world --- include/world.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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: /* @@ -134,6 +137,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. */ -- cgit v1.2.3