Implemented mirroring in Sprite, so that now it's possible to adjust left offsets.
[supertux.git] / lib / special / sprite.h
index 86b4a06..15ee35b 100644 (file)
@@ -48,6 +48,10 @@ namespace SuperTux
         /** Frames per second */
         float fps;
 
+        /** Mirror is used to avoid duplicating left and right side
+            sprites */
+        bool mirror;
+
         std::vector<Surface*> surfaces;
         };
 
@@ -112,6 +116,9 @@ namespace SuperTux
       void init_defaults(Action* act);
       void parse_action(LispReader& lispreader);
 
+      /** Get an action */
+      Action* get_action(std::string act);
+
       void update();
       void reset();