GEJM  1.0.0.0
a 2D platformer made by students
Object.h
1 #ifndef OBJECT_H
2 #define OBJECT_H
3 
7 class Object
8 {
9 public:
17  Object(double x = 0.0, double y = 0.0, double width = 1.0, double height = 1.0);
18 
22  virtual ~Object();
23 
28  virtual void savePrevious();
29 
35  void destroy();
36 
41  double getY() const;
42 
47  double getX() const;
48 
53  double getWidth() const;
54 
59  double getHeight() const;
60 
65  double getPrevX() const;
66 
71  double getPrevY() const;
72 
77  bool getDestroyed() const;
78 
79 protected:
83  double x;
84 
88  double y;
89 
93  double width;
94 
98  double height;
99 
103  double prevX;
104 
108  double prevY;
109 
113  bool destroyed;
114 
115 };
116 
117 #endif // OBJECT_H
double getPrevY() const
Definition: Object.cpp:101
void destroy()
Definition: Object.cpp:47
double x
Definition: Object.h:83
double width
Definition: Object.h:93
double height
Definition: Object.h:98
double prevY
Definition: Object.h:108
bool getDestroyed() const
Definition: Object.cpp:110
double y
Definition: Object.h:88
double getHeight() const
Definition: Object.cpp:83
double getY() const
Definition: Object.cpp:56
virtual ~Object()
Definition: Object.cpp:28
double getPrevX() const
Definition: Object.cpp:92
Object(double x=0.0, double y=0.0, double width=1.0, double height=1.0)
Definition: Object.cpp:14
double prevX
Definition: Object.h:103
double getWidth() const
Definition: Object.cpp:74
Definition: Object.h:7
bool destroyed
Definition: Object.h:113
double getX() const
Definition: Object.cpp:65
virtual void savePrevious()
Definition: Object.cpp:36