/* ------------------------------------------------------------- KDE Tuberling Object to draw on the game board mailto:e.bischoff@noos.fr ------------------------------------------------------------- */ #ifndef _TODRAW_H_ #define _TODRAW_H_ #include #include class ToDraw { public: ToDraw(); ToDraw(const ToDraw &); ToDraw(int, const QRect &); ToDraw &operator=(const ToDraw &); void draw(QPainter &, const QRect &, const QRect *, const QPixmap *, const QBitmap *) const; void save(FILE *) const; bool load(FILE *, int, bool &); inline int getNumber() const { return number; } inline void setNumber(int newValue) { number = newValue; } inline const QRect &getPosition() const { return position; } private: int number; QRect position; }; #endif