class Tile
{
public:
+ static bool draw_editor_images;
/// bitset for tile attributes
enum {
/** solid tile that is indestructible by Tux */
const TileSet& tileset;
std::vector<ImageSpec> imagespecs;
std::vector<SurfacePtr> images;
+ std::vector<ImageSpec> editor_imagespecs;
+ std::vector<SurfacePtr> editor_images;
/// tile attributes
uint32_t attributes;
/** General purpose data attached to a tile (content of a box, type of coin)*/
int data;
- float anim_fps;
+ float fps;
public:
Tile(const TileSet& tileset);
- Tile(const TileSet& tileset, const std::vector<ImageSpec>& images,
- uint32_t attributes, uint32_t data, float animfps);
+ Tile(const TileSet& tileset, const std::vector<ImageSpec>& images, const std::vector<ImageSpec>& editor_images,
+ uint32_t attributes, uint32_t data, float fps);
~Tile();
/** load Surfaces, if not already loaded */