diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-15 07:40:52 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-06-15 07:40:52 -0400 |
commit | 8f385ec7ac5a78bc3bf70170f4ab39ebcac8e32a (patch) | |
tree | 0ef69ad65035e35467ad56d7a1973abfc44894b9 /include | |
parent | 076c984c438bea2b34f8dd3a62bb31ebd2eb5282 (diff) |
world saving / new game script stuff
Diffstat (limited to 'include')
-rw-r--r-- | include/entities.hpp | 2 | ||||
-rw-r--r-- | include/world.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/entities.hpp b/include/entities.hpp index 605cc77..7e68be3 100644 --- a/include/entities.hpp +++ b/include/entities.hpp @@ -160,7 +160,7 @@ public: bool near; // when true, the entity can move - bool canMove; + int canMove; // tells direction entity is facing bool right, left; diff --git a/include/world.hpp b/include/world.hpp index e240973..cea79c1 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -397,8 +397,8 @@ public: */ std::string getSTextureLocation(unsigned int index) const; - // saves the world's data to an XML file - void save(void); + // saves the world's data to an XML file, either the one provided or the current path + void save(const std::string& s=""); // plays/pauses the world's music, according to if a new world is being entered void bgmPlay(World *prev) const; |