Roguelike
 All Classes Namespaces Functions Variables Typedefs Friends Pages
int_point.h
1 
20 #ifndef INT_POINT_H
21 #define INT_POINT_H
22 #include <iostream>
23 
24 using namespace std;
25 
26 class IntPoint
27 {
28  friend ostream& operator<<(ostream&, const IntPoint&);
29  private:
30  void print() const;
31  public:
32  int col;
33  int row;
34  IntPoint();
35  IntPoint(int _row, int _col);
36  bool operator==(const IntPoint&);
37  bool operator!=(const IntPoint&);
38  IntPoint operator+(const int&);
39  IntPoint operator+(const IntPoint&);
40  IntPoint operator-(const int&);
41  IntPoint operator-(const IntPoint&);
42 };
43 
44 #endif
Definition: int_point.h:26