Game Develop C++ Platform: Point.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Point.h
Go to the documentation of this file.
1
6 #ifndef POINT_H
7 #define POINT_H
8 #include <string>
9
10 using namespace std;
11
17 class GD_API Point
18 {
19 public:
20 Point(const string & name_);
21 virtual ~Point() {};
22
26 inline void SetName(string name_) { name = name_; }
27
31 inline string GetName() const { return name; }
32
36 inline void SetXY(int x_, int y_) { x = x_;y = y_; }
37
41 inline void SetX(int x_) { x = x_; }
42
46 inline void SetY(int y_) { y = y_; }
47
51 inline int GetX() const { return x; }
52
56 inline int GetY() const { return y; }
57
58 private:
59 string name;
60 int x;
61 int y;
62 };
63
64 #endif // POINT_H
65