src/gengine/MultiDrawer.h
raw| 1 | #ifndef HEADER_MULTIDRAWER_H |
| 2 | #define HEADER_MULTIDRAWER_H |
| 3 | |
| 4 | #include "Drawable.h" |
| 5 | |
| 6 | #include <vector> |
| 7 | |
| 8 | /** |
| 9 | * Container for pasive drawers. |
| 10 | */ |
| 11 | class MultiDrawer : public Drawable { |
| 12 | private: |
| 13 | typedef std::vector<Drawable*> t_drawers; |
| 14 | t_drawers m_drawers; |
| 15 | public: |
| 16 | void acceptDrawer(Drawable *drawer); |
| 17 | void removeDrawer(const Drawable *drawer); |
| 18 | void removeAll(); |
| 19 | |
| 20 | virtual void drawOn(SDL_Surface *screen); |
| 21 | }; |
| 22 | |
| 23 | #endif |