X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftile.hpp;h=2f57f3d1884a415df5943ccdf24f29fd0c37392e;hb=fb8cef6efacc0dff5faaff6dc4aa638289285099;hp=d1c7fe76a77419f94a5f231c21e367504ec41c47;hpb=08ccb17345a52f5ffd8a5dd6ecf675cad55f16a7;p=supertux.git diff --git a/src/tile.hpp b/src/tile.hpp index d1c7fe76a..2f57f3d18 100644 --- a/src/tile.hpp +++ b/src/tile.hpp @@ -77,7 +77,7 @@ public: WORLDMAP_SOUTH = 0x0002, WORLDMAP_EAST = 0x0004, WORLDMAP_WEST = 0x0008, - WORLDMAP_DIR_MASK = 0x000f, + WORLDMAP_DIR_MASK = 0x000f, WORLDMAP_STOP = 0x0010, @@ -142,13 +142,18 @@ public: protected: friend class TileSet; Tile(const TileSet *tileset); - Tile(const TileSet *tileset, Uint32 attributes, const ImageSpec& imagespec); + Tile(const TileSet *tileset, std::vector 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