aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy <drumsetmonkey@gmail.com>2016-11-30 07:39:55 -0500
committerAndy <drumsetmonkey@gmail.com>2016-11-30 07:39:55 -0500
commite06726a9e933ffa4195878fd784cecb1a66ca20a (patch)
tree0e4720bf8f8e34724ef03c50c6f2e961b260b7d5 /include
parent1c5b4e5a0ad8b7a65fef3df48ed50f96a4b865c7 (diff)
parentddac347ea12637bdc63a1b126a393d6e35313204 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'include')
-rw-r--r--include/common.hpp4
-rw-r--r--include/world.hpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/common.hpp b/include/common.hpp
index d13e397..249b9eb 100644
--- a/include/common.hpp
+++ b/include/common.hpp
@@ -105,6 +105,10 @@ struct vec2 {
return vec2 (x + n, y + n);
}
+ const vec2 operator+(const vec2 &v) {
+ return vec2 (x + v.x, y + v.y);
+ }
+
template<typename T>
const vec2 operator*(const T &n) {
return vec2 (x * n, y * n);
diff --git a/include/world.hpp b/include/world.hpp
index b8a80a4..5c021bf 100644
--- a/include/world.hpp
+++ b/include/world.hpp
@@ -146,6 +146,7 @@ private:
* SDL's object for handling the background music.
*/
Mix_Music *bgmObj;
+ std::string bgmCurrent;
/**
* Paths of files to get stylized textures from.