| 1 | /*************************************************************************** |
| 2 | paper.h - description |
| 3 | ------------------- |
| 4 | begin : Fri Jan 18 2002 |
| 5 | copyright : (C) 2002 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 PAPER_H |
| 19 | #define PAPER_H |
| 20 | |
| 21 | #include "animatedcanvas.h" |
| 22 | |
| 23 | class Sprite; |
| 24 | class ImageManager; |
| 25 | |
| 26 | class Paper: public AnimatedCanvas{ |
| 27 | |
| 28 | public: |
| 29 | static const int DeltaY; |
| 30 | static const int NFrames; |
| 31 | |
| 32 | enum PaperColor {Red, Green, Blue}; |
| 33 | |
| 34 | Paper(int maxY, PaperColor color, ImageManager * im); |
| 35 | virtual ~Paper(); |
| 36 | |
| 37 | int width(); |
| 38 | |
| 39 | int height(); |
| 40 | |
| 41 | void paint(VideoManager * vm); |
| 42 | |
| 43 | void tick(); |
| 44 | |
| 45 | protected: |
| 46 | |
| 47 | Sprite * sprite; |
| 48 | |
| 49 | int frame; |
| 50 | |
| 51 | int maxY; |
| 52 | |
| 53 | int l_width; |
| 54 | |
| 55 | int l_height; |
| 56 | }; |
| 57 | |
| 58 | #endif |
| 59 |