00001 00012 class ODPoint : public OPoint 00013 { 00014 protected: 00015 int d; 00016 public: 00017 inline OGraphic* clone() const; 00018 inline OGraphic* create() const; 00019 ODPoint(); 00020 ODPoint(int,int,int=1); 00021 ODPoint(OPoint &,int=1); 00022 ~ODPoint(); 00023 00024 bool isValid(); 00025 void move(int,int,int=0); 00026 00027 bool operator == (ODPoint &); 00028 bool operator != (ODPoint &); 00029 00030 void gomo(ostream &); 00031 void gomi(istream &); 00032 void xmlo(ostream &); 00033 00034 void clear(); 00035 inline void setDepth(int); 00036 inline int getDepth(); 00037 inline int getDDepth(ODPoint &); 00038 }; 00039 00040 inline OGraphic* ODPoint::clone() const 00041 { return new ODPoint(*this); } 00042 inline OGraphic* ODPoint::create() const 00043 { return new ODPoint(); } 00044 00045 inline void ODPoint::clear() 00046 { this->x = -1; this->y = -1; this->d = -1; } 00047 inline int ODPoint::getDepth() 00048 { return d; } 00049 inline void ODPoint::setDepth(int d) 00050 { this->d = d; } 00051 inline int ODPoint::getDDepth(ODPoint & p) 00052 {return p.getDepth()-d;} 00053