diff options
author | Stijn Buys <ingar@osirion.org> | 2008-08-24 21:36:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-08-24 21:36:39 +0000 |
commit | e6272cd7d356bbb047dcaebb03ae217235e1e13f (patch) | |
tree | 7c7c6551a2d7051d10b0c4f0c4d87554365c63de /src/core/entity.h | |
parent | 9c4d134ab304794b755139e90ca6da9de73a1e9a (diff) |
afterburner/reverse/strafe
Diffstat (limited to 'src/core/entity.h')
-rw-r--r-- | src/core/entity.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/core/entity.h b/src/core/entity.h index 8a996fd..6214d50 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -342,9 +342,15 @@ public: /// set the target pitch void set_pitch(float pitch); - /// set target roll + /// set target roll void set_roll(float roll); + /// set target strafe + void set_strafe(float strage); + + /// set afterburner/reverse + void set_afterburner(float afterburner); + /// runs one game frame for the entity /** * The default implementation will set direction() and thrust() to the desired targets @@ -355,6 +361,7 @@ public: /// current thrust float entity_thrust; +protected: /* target_ variables can be set by the client */ /// target thrust as set by the client float target_thrust; @@ -369,7 +376,11 @@ public: /// target roll as set by the client /** target_roll must be in the [-1, 1] range */ - float target_roll; + float target_roll; + + float target_afterburner; + + float target_strafe; private: // owner of the entity |