projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve exception feedback a bit
[supertux.git]
/
src
/
tilemap.h
diff --git
a/src/tilemap.h
b/src/tilemap.h
index
c464355
..
92d121d
100644
(file)
--- a/
src/tilemap.h
+++ b/
src/tilemap.h
@@
-22,13
+22,18
@@
#include <vector>
#include <vector>
-#include "game_object.h"
+#include "
special/
game_object.h"
#include "serializable.h"
#include "serializable.h"
-#include "vector.h"
+#include "math/vector.h"
+
+using namespace SuperTux;
+
+namespace SuperTux {
+class LispReader;
+}
class Level;
class TileManager;
class Level;
class TileManager;
-class LispReader;
class Tile;
struct TileId
class Tile;
struct TileId
@@
-64,6
+69,10
@@
public:
*/
void resize(int newwidth, int newheight);
*/
void resize(int newwidth, int newheight);
+ /** Flip the all tile map vertically. The purpose of this is to let
+ player to play the same level in a different way :) */
+ void do_vertical_flip();
+
size_t get_width() const
{ return width; }
size_t get_width() const
{ return width; }
@@
-96,6
+105,8
@@
private:
float speed;
int width, height;
int layer;
float speed;
int width, height;
int layer;
+
+ bool vertical_flip;
};
#endif /*SUPERTUX_TILEMAP_H*/
};
#endif /*SUPERTUX_TILEMAP_H*/