#ifndef __POINT_HXX__
#define __POINT_HXX__



class Point
{
  public :
  
    Point(int x=0, int y=0) : 
          x_(x), y_(y) 
    { 
      NombrePoints_++;
    } ;

    int x(void) const
    {
      return x_;
    }

    int y(void) const
    {
      return y_;
    }

    void deplacerVers(int versX, int versY)
    {
      x_ = versX;
      y_ = versY;
    }

    void deplacerDe(int surX, int surY)
    {
      deplacerVers(x_ + surX, y_ + surY);
    }

    static int NombrePoints(void)
    {
      return NombrePoints_;
    }
    

    void print(void) const ;

    ~Point();
    
  private :
    int        x_;
    int        y_;
    static int NombrePoints_;
};

class ostream;

ostream& operator<<(ostream &,const Point&);

#endif
