Game Develop C++ Platform: Force.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
Force.h
Go to the documentation of this file.
1
6 #ifndef FORCE_H_INCLUDED
7 #define FORCE_H_INCLUDED
8
14 class GD_API Force
15 {
16 public:
17
18 Force();
19 Force(const Force & other);
20 Force(float x, float y, float clearing);
21
22 float GetX() const { return x; };
23 float GetY() const { return y; };
24 float GetAngle() const;
25 float GetLength() const;
26 float GetClearing() const { return clearing; };
27
28 void SetX(float x_);
29 void SetY(float y_);
30 void SetAngle(float angle_);
31 void SetLength(float length_);
32 void SetClearing(float clearing_);
33
34 private:
35
36 float x;
37 float y;
38 mutable float angle;
39 mutable float length;
40 float clearing;
41
42 mutable bool isDirty;
43
44 static const float PI;
45 };
46
47 #endif // FORCE_H_INCLUDED
48