1 /*************************************************************************** 2 pointer.h - description 3 ------------------- 4 begin : Thu Sep 14 2000 5 copyright : (C) 2000 by Waldemar Baraldi 6 email : baraldi@lacasilla.com.ar 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 POINTER_H 19 #define POINTER_H 20 21 #include "canvas.h" 22 23 class Board; 24 25 class Pointer: public Canvas{ 26 27 public: 28 static const int width=60; 29 static const int height=60; 30 31 /** Constructor default.*/ 32 Pointer(int row=0, int column=0); 33 34 /** Destructor.*/ 35 ~Pointer(); 36 37 int getRow(); 38 int getColumn(); 39 40 void paint(VideoManager * vm); 41 42 protected: 43 44 friend class Board; 45 46 inline void setRow(int row); 47 inline void setColumn(int column); 48 void setRowColumn(int row, int column); 49 void setMoved(bool flag); 50 bool moved(); 51 52 Str * image_name; 53 Image * ima; 54 55 int row, column; 56 bool moved_flag; 57 }; 58 59 #endif 60 61