Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-08-10 18:48:23 +0000
committerStijn Buys <ingar@osirion.org>2008-08-10 18:48:23 +0000
commit9c56ebfdba5fe33476f8d382da6d72e5b81ab4b8 (patch)
tree3dfee7a93cd591df8ef3a0aef811067ef6451df7 /src/core/entity.h
parentae96accdd3c38d3f96b0725020e7a390c53b86d5 (diff)
added racetrack to the game module, added Odin's new structures to the assets documentation
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index 2b2ed00..30e3356 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -47,7 +47,7 @@ public:
enum Shape {Diamond=0, Sphere=1, Cube=2, Axis=3};
/// EntityDynamic event state classes
- enum Event {Normal=0, ImpulseInitiate=2, Impulse=3, JumpInitiate=4, Jump=5};
+ enum Event {Normal=0, NoPower=1, ImpulseInitiate=2, Impulse=3, JumpInitiate=4, Jump=5};
/// create a new entity and add it to the registry
Entity(unsigned int flags = 0);
@@ -137,7 +137,7 @@ public:
virtual void receive_server_update(std::istream &is);
/// mark the entity as destroyed
- void die();
+ virtual void die();
/// runs one game frame for the entity
/**
@@ -276,8 +276,9 @@ public:
/// speed of the entity
float entity_speed;
-protected:
unsigned int entity_eventstate;
+
+protected:
float entity_timer;
};