1 #ifndef __BACKGROUND_H__
2 #define __BACKGROUND_H__
5 #include "game_object.h"
15 class Background : public GameObject, public Drawable
18 Background(DisplayManager& displaymanager);
19 virtual ~Background();
21 void set_image(Surface* image, float bkgd_speed);
23 void set_gradient(Color top, Color bottom);
25 virtual std::string type() const
26 { return "Background"; }
28 virtual void action(float elapsed_time);
30 virtual void draw(ViewPort& viewport, int layer);
36 Color gradient_top, gradient_bottom;