Do a black fade-in when selecting slot.
[supertux.git] / src / game_object.h
index d2824b5..fe81d95 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <string>
 
-class DisplayManager;
+class DrawingContext;
 
 /**
  * Base class for all game objects. This contains functions for:
@@ -47,6 +47,11 @@ public:
    */
   virtual void action(float elapsed_time) = 0;
 
+  /** The GameObject should draw itself onto the provided DrawingContext if this
+   * function is called.
+   */
+  virtual void draw(DrawingContext& context) = 0;
+
   /** returns true if the object is not scheduled to be removed yet */
   bool is_valid() const
   { return !wants_to_die; }