summary refs log tree commit diff stats
path: root/src/components/transformable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/transformable.h')
-rw-r--r--src/components/transformable.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/components/transformable.h b/src/components/transformable.h new file mode 100644 index 0000000..bb21996 --- /dev/null +++ b/src/components/transformable.h
@@ -0,0 +1,35 @@
1#ifndef LOCATABLE_H_39E526CA
2#define LOCATABLE_H_39E526CA
3
4#include "component.h"
5#include "vector.h"
6
7class TransformableComponent : public Component {
8public:
9
10 /**
11 * The coordinates of the entity.
12 *
13 * Note that ponderable entities sometimes have special behavior related to
14 * their coordinates, specifically that ferried bodies will behave oddly if
15 * their coordinates are changed outside of the PonderingSystem. Before doing
16 * so, use PonderingSystem::unferry on the body to ensure that it is not
17 * ferried.
18 */
19 vec2d pos;
20
21 /**
22 * The size of the entity.
23 */
24 vec2i size;
25
26 /**
27 * For prototypes, the original coordinates and size of the entity.
28 *
29 * @managed_by RealizingSystem
30 */
31 vec2d origPos;
32 vec2i origSize;
33};
34
35#endif /* end of include guard: LOCATABLE_H_39E526CA */