Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index 954b261..48dd949 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -226,6 +226,11 @@ public:
/* ---- mutators -------------------------------------------------- */
+ /// assign shape
+ inline void set_shape(Shape shape) {
+ entity_shape = shape;
+ }
+
/// assign entity color
inline void set_color(const math::Color &color) {
entity_color.assign(color);
@@ -429,9 +434,6 @@ public:
/* entity_ variables can be set by the module */
- float entity_mass;
- float entity_speed;
- Shape entity_shape;
unsigned int entity_moduletypeid;
bool entity_created;
@@ -451,7 +453,11 @@ protected:
// the previous zone the entity belonged too
Zone* entity_oldzone;
+ float entity_mass;
+ float entity_speed;
+
private:
+
unsigned int entity_id;
unsigned int entity_flags;
@@ -464,6 +470,8 @@ private:
float entity_radius;
+ Shape entity_shape;
+
math::Color entity_color;
math::Color entity_color_second;