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-12-28 12:33:04 +0000
committerStijn Buys <ingar@osirion.org>2008-12-28 12:33:04 +0000
commit4e1d951705204899ee99d7fcedf582b25b86b506 (patch)
tree03cb919ff062368dfc334b9f71b932cf89e31517 /src/game/base/jumppoint.h
parent82c63c49134a6fca91d908792438e6284dc4cebf (diff)
generic docking API,
race activating requires docking
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();