class Sprite;
-namespace WorldMapNS {
+namespace worldmap {
class LevelTile : public GameObject
{
public:
- LevelTile(const std::string& basedir, const lisp::Lisp* lisp);
+ LevelTile(const std::string& basedir, const Reader& lisp);
virtual ~LevelTile();
virtual void draw(DrawingContext& context);
virtual void update(float elapsed_time);
+ /** return Surface of level picture or 0 if no picture is available */
+ const Surface* get_picture();
+
+public:
Vector pos;
std::string title;
bool solved;
/** Script that is run when the level is successfully finished */
std::string extro_script;
- /** return Surface of level picture or 0 if no picture is available */
- const Surface* get_picture();
-
private:
std::string basedir;
bool picture_cached;
LevelTile& operator=(const LevelTile&);
};
-} // namespace WorldMapNS
+} // namespace worldmap
#endif