diff options
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; |