public:
/// bitset for tile attributes
enum {
- /** solid tile that is indestructable by Tux */
+ /** solid tile that is indestructible by Tux */
SOLID = 0x0001,
/** uni-directional solid tile */
UNISOLID = 0x0002,
WORLDMAP_SOUTH = 0x0002,
WORLDMAP_EAST = 0x0004,
WORLDMAP_WEST = 0x0008,
- WORLDMAP_DIR_MASK = 0x000f,
+ WORLDMAP_DIR_MASK = 0x000f,
WORLDMAP_STOP = 0x0010,
protected:
friend class TileSet;
Tile(const TileSet *tileset);
- Tile(const TileSet *tileset, Uint32 attributes, const ImageSpec& imagespec);
+ Tile(const TileSet *tileset, std::vector<std::string> images, Rect rect,
+ Uint32 attributes = 0, Uint32 data = 0, float animfps = 1.0);
void load_images();
/// parses the tile and returns it's id number
uint32_t parse(const lisp::Lisp& reader);
void parse_images(const lisp::Lisp& cur);
+
+ //Correct small oddities in attributes that naive people
+ //might miss (and rebuke them for it)
+ void correct_attributes();
};
#endif