X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftile.h;h=f943a2395be5ca826a1275396cb0d02d2c91472c;hb=875ef8eb7e93726bc67dfa7f05da946250e588d4;hp=692bfe804f31d9b0171f8bd7671d09c03afb3736;hpb=edaacb3651cf0560314dd008d7243be4b3b2f8c6;p=supertux.git diff --git a/src/tile.h b/src/tile.h index 692bfe804..f943a2395 100644 --- a/src/tile.h +++ b/src/tile.h @@ -41,9 +41,9 @@ public: ~Tile(); /// parses the tile and returns it's id number - int read(LispReader& reader); + void read(LispReader& reader); - int id; + unsigned int id; std::vector images; std::vector editor_images; @@ -70,7 +70,9 @@ public: * if data is 0 then the endsequence should be triggered, if data is 1 * then we can finish the level instantly. */ - GOAL = 0x0100 + GOAL = 0x0100, + /** slope tile */ + SLOPE = 0x0200 }; /** tile attributes */ @@ -83,13 +85,10 @@ public: been collected or jumped at */ int next_tile; - int anim_speed; + float anim_fps; - /** This is the angle of the slope. Set to 0, if this is no slope. */ - float slope_angle; - - /** Draw a tile on the screen: */ - static void draw(const Vector& pos, unsigned int c, Uint8 alpha = 255); + /** Draw a tile on the screen */ + void draw(DrawingContext& context, const Vector& pos, int layer) const; /// returns the width of the tile in pixels int getWidth() const