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.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index 230ce1b..164f746 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -263,8 +263,9 @@ public:
/**
* @brief runs one game frame for the entity
* The default implementation does nothing
+ * @param elapsed elepased time since previous frame, in milliseconds
*/
- virtual void frame(float seconds);
+ virtual void frame(const unsigned long elapsed);
/**
* @brief runs one upkeep frame for the entity
@@ -588,12 +589,13 @@ public:
/// set event state
virtual void set_state(int state);
- /// runs one game frame for the entity
/**
+ * @brief runs one game frame for the entity
* The default implementation will update the position() of the entity,
* determined by its speed() and axis()
+ * @param elapsed elepased time since previous frame, in milliseconds
*/
- virtual void frame(float seconds);
+ virtual void frame(const unsigned long elapsed);
/**
* @brief reset the physics state
@@ -743,8 +745,9 @@ public:
* @brief runs one game frame for the entity
* The default implementation will set direction() and thrust() to the desired targets
* and calls its parent frame() funcion.
+ * @param elapsed elepased time since previous frame, in milliseconds
*/
- virtual void frame(float seconds);
+ virtual void frame(const unsigned long elapsed);
/// current thrust
float entity_thrust;