#include "video/drawing_context.hpp"
#include "worldmap/sprite_change.hpp"
-namespace WorldMapNS {
+namespace worldmap {
SpriteChange::SpriteChange(const Reader& lisp) :
pos(),
- change_on_touch(false),
+ change_on_touch(false),
sprite(),
stay_action(),
stay_group(),
std::string spritefile = "";
lisp.get("sprite", spritefile);
- sprite = sprite_manager->create(spritefile);
+ sprite = SpriteManager::current()->create(spritefile);
lisp.get("stay-action", stay_action);
lisp.get("initial-stay-action", in_stay_action);
// if we are in a stay_group, also clear all stay actions in this group
if (stay_group != "") {
- for (std::list<SpriteChange*>::iterator i = all_sprite_changes.begin(); i != all_sprite_changes.end(); i++) {
+ for (std::list<SpriteChange*>::iterator i = all_sprite_changes.begin(); i != all_sprite_changes.end(); ++i) {
SpriteChange* sc = *i;
if (sc->stay_group != stay_group) continue;
sc->in_stay_action = false;