blob: bb219968ace77b7bc2f7e619a71d0ef50dbfd69c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef LOCATABLE_H_39E526CA
#define LOCATABLE_H_39E526CA
#include "component.h"
#include "vector.h"
class TransformableComponent : public Component {
public:
/**
* The coordinates of the entity.
*
* Note that ponderable entities sometimes have special behavior related to
* their coordinates, specifically that ferried bodies will behave oddly if
* their coordinates are changed outside of the PonderingSystem. Before doing
* so, use PonderingSystem::unferry on the body to ensure that it is not
* ferried.
*/
vec2d pos;
/**
* The size of the entity.
*/
vec2i size;
/**
* For prototypes, the original coordinates and size of the entity.
*
* @managed_by RealizingSystem
*/
vec2d origPos;
vec2i origSize;
};
#endif /* end of include guard: LOCATABLE_H_39E526CA */
|