From 8f385ec7ac5a78bc3bf70170f4ab39ebcac8e32a Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 15 Jun 2016 07:40:52 -0400 Subject: world saving / new game script stuff --- include/entities.hpp | 2 +- include/world.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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; -- cgit v1.2.3