| 1 | /*************************************************************************** |
| 2 | background.h - description |
| 3 | ------------------- |
| 4 | begin : Wed Mar 21 2001 |
| 5 | copyright : (C) 2001 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | #ifndef BACKGROUND_H |
| 19 | #define BACKGROUND_H |
| 20 | |
| 21 | #include "canvas.h" |
| 22 | |
| 23 | class Background; |
| 24 | |
| 25 | #include "board.h" |
| 26 | #include "pipe.h" |
| 27 | |
| 28 | class Background: public Canvas{ |
| 29 | |
| 30 | public: |
| 31 | Background():Canvas(){}; |
| 32 | |
| 33 | int width(){return BoardColumns*PipeWidth;} |
| 34 | int height(){return BoardRows*PipeHeight;} |
| 35 | |
| 36 | virtual void repaint(VideoManager * vm, int x, int y, int w, int h)=0; |
| 37 | }; |
| 38 | #endif |
| 39 |