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-11-09 21:45:18 +0000
committerStijn Buys <ingar@osirion.org>2008-11-09 21:45:18 +0000
commita1eb1b4dc4d81df724ee43fc4e895dd22e81760f (patch)
tree5d53a557540147e1e981c5cd3c6be8ccc8448381 /src/game/base/ship.h
parent568e868ef43cc79ad277ec5ab2c3e08647725131 (diff)
working jumpgates
Diffstat (limited to 'src/game/base/ship.h')
-rw-r--r--src/game/base/ship.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/game/base/ship.h b/src/game/base/ship.h
index d3c8bbf..bed3d1e 100644
--- a/src/game/base/ship.h
+++ b/src/game/base/ship.h
@@ -13,7 +13,7 @@
#include "base/jumppoint.h"
#include "math/vector3f.h"
-namespace base {
+namespace game {
/// A ship in the game, controled by a player
class Ship : public core::EntityControlable
@@ -28,16 +28,23 @@ public:
/// true if the ship is equiped with a jumpdrive
inline bool jumpdrive() const { return ship_jumpdrive; }
- /// toggle jump drive activation
- void jump(std::string const & args);
-
- /// toggle impulse drive activation
- void impulse();
+ /// Initiate jump, departing from a jump point
+ /** Initiates a jump even if the ship has no jumpdrive
+ */
+ void initiate_jump(JumpPoint *depart);
/// void reset drive controls
void reset();
+ /// toggle impulse drive activation
+ void func_impulse();
+
+ /// toggle jump drive activation
+ void func_jump(std::string const & args);
+
private:
+ JumpPoint *find_closest_jumppoint();
+
ShipModel *ship_shipmodel;
float current_target_direction;
@@ -51,7 +58,8 @@ private:
float ship_impulsedrive_timer;
- JumpPoint * find_closest_jumppoint();
+
+ JumpPoint *ship_jumpdepart;
};
}