| 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_Hcxx . . $ `src/pointer.h:19:9`! |
| 20 |
|
| 21 |
#include "canvas.h"cxx . . $ `<file>/src/canvas.h`/ |
| 22 |
|
| 23 |
class Boardcxx . . $ Board#; |
| 24 |
|
| 25 |
class Pointercxx . . $ Pointer#: public Canvascxx . . $ Canvas#{ |
| 26 |
|
| 27 |
public: |
| 28 |
static const int widthcxx . . $ Pointer#width.=60; |
| 29 |
static const int heightcxx . . $ Pointer#height.=60; |
| 30 |
|
| 31 |
/** Constructor default.*/ |
| 32 |
Pointercxx . . $ Pointer#Pointer(3e454b8ccf442868).(int row=0, int column=0); |
| 33 |
|
| 34 |
/** Destructor.*/ |
| 35 |
~cxx . . $ Pointer#`~Pointer`(ced63f7c635d850d).Pointercxx . . $ Pointer#(); |
| 36 |
|
| 37 |
int getRowcxx . . $ Pointer#getRow(b126dc7c1de90089).(); |
| 38 |
int getColumncxx . . $ Pointer#getColumn(b126dc7c1de90089).(); |
| 39 |
|
| 40 |
void paintcxx . . $ Pointer#paint(dec28a01b93bce57).(VideoManagercxx . . $ VideoManager# * vm); |
| 41 |
|
| 42 |
protected: |
| 43 |
|
| 44 |
friend class Boardcxx . . $ Board#; |
| 45 |
|
| •46 |
inline void setRowcxx . . $ Pointer#setRow(d4f767463ce0a6b3).(int row){ |
| 47 |
this->rowcxx . . $ Pointer#row.=row; |
| 48 |
} |
| 49 |
|
| 50 |
inline void setColumncxx . . $ Pointer#setColumn(d4f767463ce0a6b3).(int column){ |
| 51 |
this->columncxx . . $ Pointer#column.=column; |
| 52 |
} |
| 53 |
|
| 54 |
inline void setRowColumncxx . . $ Pointer#setRowColumn(3e454b8ccf442868).(int row, int column){ |
| 55 |
this->rowcxx . . $ Pointer#row.=row; |
| 56 |
this->columncxx . . $ Pointer#column.=column; |
| 57 |
} |
| 58 |
|
| 59 |
inline void setMovedcxx . . $ Pointer#setMoved(b45ddcbc8423892c).(bool flag){ |
| 60 |
moved_flagcxx . . $ Pointer#moved_flag.=flag; |
| 61 |
} |
| 62 |
|
| 63 |
inline bool movedcxx . . $ Pointer#moved(c9857a73d68e59ba).(){ |
| 64 |
return moved_flagcxx . . $ Pointer#moved_flag.; |
| 65 |
} |
| 66 |
|
| 67 |
|
| 68 |
Strcxx . . $ Str# * image_namecxx . . $ Pointer#image_name.; |
| 69 |
Imagecxx . . $ Image# * imacxx . . $ Pointer#ima.; |
| 70 |
|
| 71 |
int rowcxx . . $ Pointer#row., columncxx . . $ Pointer#column.; |
| 72 |
bool moved_flagcxx . . $ Pointer#moved_flag.; |
| 73 |
}; |
| 74 |
|
| 75 |
#endif |
| 76 |
|