From 4e1d951705204899ee99d7fcedf582b25b86b506 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Dec 2008 12:33:04 +0000 Subject: generic docking API, race activating requires docking --- src/game/base/jumppoint.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/game/base/jumppoint.h') 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(); -- cgit v1.2.3