Created the loadGameMap() function, still incomplete

Although the overall logic of this function is finished, I still need to
write the callbacks for RegionPager's onNew and onDelete.

I've also tested this using a hand written save/index file. I've written
up a map file format by hand, and I'll be implementing it over the next
few commits.
This commit is contained in:
Kayne Ruse
2013-10-14 21:12:09 +11:00
parent 0d3c3243a0
commit 88aee0f4f5
8 changed files with 133 additions and 13 deletions
+4 -1
View File
@@ -21,7 +21,10 @@
*/
#include "region_pager.hpp"
#include "utility.hpp"
#include <stdexcept>
#include <string>
RegionPager::RegionPager() {
//
@@ -110,7 +113,7 @@ void RegionPager::DrawTo(SDL_Surface* const dest, std::list<TileSheet>* const sh
}
//reaching this point without rendering means that the tile is invalid
throw(std::runtime_error("Undrawable tile encountered"));
throw(std::runtime_error(std::string("Undrawable tile encountered: ") + to_string_custom(tileIter.tileIndex)));
continueTile: ;
//continue with the next tile