Debian Codegraph @

src/pointer.cpp

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 /***************************************************************************
2 pointer.cpp - 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 #include "pointer.h"
19
20 Pointer::Pointer(int row=0, int column=0){
21 this->row=row;
22 this->column=column;
23 this->moved_flag=true;
24 }
25
26 Pointer::~Pointer(){ delete image_name;}
27
28 void Pointer::setRow(int row){
29 this->row=row;
30 }
31
32 void Pointer::setColumn(int column){
33 this->column=column;
34 }
35
36 void Pointer::setRowColumn(int row, int column){
37 this->row=row;
38 this->column=column;
39 }
40
41 void Pointer::setMoved(bool flag){
42 moved_flag=flag;
43 }
44
45 bool Pointer::moved(){
46 return moved_flag;
47 }
48
49 int Pointer::getRow(){
50 return row;
51 }
52
53 int Pointer::getColumn(){
54 return column;
55 }
56
57 void Pointer::paint(VideoManager * vm){
58 ima=((ImageManager *)(vm->getImageManager()))->getImage(new Str(image_name));
59 vm->blit(ima, x, y);
60 }
61
62