#include "door.h"
#include "gameloop.h"
#include "resources.h"
+#include "object_factory.h"
#include "special/sprite.h"
#include "special/sprite_manager.h"
#include "video/drawing_context.h"
{
//Check if door animation is complete
if(sprite->check_animation()) {
+ sprite->set_action("normal");
GameSession::current()->respawn(target_sector, target_spawnpoint);
}
}
}
}
+IMPLEMENT_FACTORY(Door, "door");