diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-06-18 12:14:05 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-06-18 12:14:05 -0400 |
commit | 55c8a14a7e2b2dadf0def3e09f970818164366f5 (patch) | |
tree | e05795e83aa61dc5b951a70328b8499d3c583ea6 /src/components/transformable.h | |
parent | 879c2c04d9c3879f871cfe79f9b25fd23c5184b4 (diff) | |
download | therapy-55c8a14a7e2b2dadf0def3e09f970818164366f5.tar.gz therapy-55c8a14a7e2b2dadf0def3e09f970818164366f5.tar.bz2 therapy-55c8a14a7e2b2dadf0def3e09f970818164366f5.zip |
Now displaying player character
Diffstat (limited to 'src/components/transformable.h')
-rw-r--r-- | src/components/transformable.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/transformable.h b/src/components/transformable.h new file mode 100644 index 0000000..87ba84d --- /dev/null +++ b/src/components/transformable.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef LOCATABLE_H_39E526CA | ||
2 | #define LOCATABLE_H_39E526CA | ||
3 | |||
4 | #include "component.h" | ||
5 | |||
6 | class TransformableComponent : public Component { | ||
7 | public: | ||
8 | TransformableComponent(double x, double y, int w, int h); | ||
9 | |||
10 | double getX() const; | ||
11 | double getY() const; | ||
12 | int getW() const; | ||
13 | int getH() const; | ||
14 | |||
15 | void setX(double v); | ||
16 | void setY(double v); | ||
17 | void setW(int v); | ||
18 | void setH(int v); | ||
19 | |||
20 | private: | ||
21 | double x; | ||
22 | double y; | ||
23 | int w; | ||
24 | int h; | ||
25 | }; | ||
26 | |||
27 | #endif /* end of include guard: LOCATABLE_H_39E526CA */ | ||