Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/jumppoint.h')
-rw-r--r--src/game/base/jumppoint.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/game/base/jumppoint.h b/src/game/base/jumppoint.h
index 4bab7db..900f1f3 100644
--- a/src/game/base/jumppoint.h
+++ b/src/game/base/jumppoint.h
@@ -16,8 +16,8 @@ namespace game {
/// a jumppoint
/**
- * jumppoints are used to define hyperspace routes between systems
- * when a ship actives the jump drive, a jump point will be opened
+ * jumppoints are used to define hyperspace routes between systems.
+ * If a ship actives its jump drive, a jump point will be opened
* between the current system and the target of the nearest jumppoint.
*
*/
@@ -34,7 +34,7 @@ public:
void set_targetlabel(const std::string &label);
/// validate the targetlabel and set target()
- void validate();
+ virtual void validate();
private:
std::string jumppoint_targetlabel;
@@ -47,6 +47,12 @@ public:
JumpGate();
virtual ~JumpGate();
+ /// validate the targetlabel and set target()
+ virtual void validate();
+
+ /// entity received a docking request
+ virtual void dock(core::Entity *entity);
+
inline bool activated() const { return (jumpgate_timer > 0); }
void activate();