diff options
Diffstat (limited to 'include/world.h')
-rw-r--r-- | include/world.h | 11 |
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. */ |