| 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, int column){ |
| 21 |
this->row=row; |
| 22 |
this->column=column; |
| 23 |
this->moved_flag=true; |
| 24 |
} |
| 25 |
|
| 26 |
Pointer::~Pointer(){ delete image_name;} |
| 27 |
|
| 28 |
int Pointer::getRow(){ |
| 29 |
return row; |
| 30 |
} |
| 31 |
|
| 32 |
int Pointer::getColumn(){ |
| 33 |
return column; |
| 34 |
} |
| 35 |
|
| 36 |
void Pointer::paint(VideoManager * vm){ |
| 37 |
ima=((ImageManager *)(vm->getImageManager()))->getImage(new Str(image_name)); |
| 38 |
vm->blit(ima, x, y); |
| 39 |
} |
| 40 |
|
| 41 |
|