00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _PATCH_H_
00029 #define _PATCH_H_
00030
00032
00033 class CPatchType;
00034
00035
00036 class CPatch
00037 {
00038 public:
00042 CPatch(CPatchType *type, int x, int y) :
00043 type(type), x(x), y(y)
00044 {
00045 }
00046
00050 ~CPatch()
00051 {
00052 }
00053
00057 inline CPatchType *getType() const { return this->type; }
00058
00062 inline void setPos(int x, int y) { this->x = x; this->y = y; }
00063
00067 inline void setX(int x) { this->x = x; }
00071 inline int getX() const { return this->x; }
00072
00076 inline void setY(int y) { this->y = y; }
00080 inline int getY() const { return this->y; }
00081
00082 private:
00083 CPatchType *type;
00084 int x;
00085 int y;
00086 };
00087
00089
00090 #endif
00091