{
}
-const Surface*
-LevelTile::get_picture()
-{
- if (picture_cached) return picture;
- picture_cached = true;
- std::string fname = FileSystem::strip_extension(basedir + name)+".jpg";
- if (!PHYSFS_exists(fname.c_str())) {
- return 0;
- }
- picture = new Surface(fname);
- return picture;
-}
-
-}
+} // namespace worldmap
/* EOF */
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;