Debian Codegraph @

src/pointer.h

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 /***************************************************************************
2 pointer.h - description
3 -------------------
4 begin : Thu Sep 14 2000
5 copyright : (C) 2000 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 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 this->row=row;
48 }
49
50 inline void setColumn(int column){
51 this->column=column;
52 }
53
54 inline void setRowColumn(int row, int column){
55 this->row=row;
56 this->column=column;
57 }
58
59 inline void setMoved(bool flag){
60 moved_flag=flag;
61 }
62
63 inline bool moved(){
64 return moved_flag;
65 }
66
67
68 Str * image_name;
69 Image * ima;
70
71 int row, column;
72 bool moved_flag;
73 };
74
75 #endif
76