diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-17 18:58:46 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-17 18:58:46 +0000 |
commit | 66ce015e5927c30801110acd289310fdff181792 (patch) | |
tree | 7beaa6b533eefdd26f0705bd65dfb5c3c9b5996a /src/game/base/shipmodel.h | |
parent | c62fe609a69058e2e30f757e9a06f72a98464232 (diff) |
Initial support for players docking other players' ships.
Diffstat (limited to 'src/game/base/shipmodel.h')
-rw-r--r-- | src/game/base/shipmodel.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/base/shipmodel.h b/src/game/base/shipmodel.h index 9b428df..38e9d5d 100644 --- a/src/game/base/shipmodel.h +++ b/src/game/base/shipmodel.h @@ -31,6 +31,11 @@ public: return shipmodel_jumpdrive; } + /// indicates if players can dock this ship model + inline const bool dock() const { + return shipmodel_dock; + } + /// acceleration inline const float acceleration() const { return shipmodel_acceleration; @@ -77,6 +82,11 @@ public: inline void set_jumpdrive(const bool jumpdrive) { shipmodel_jumpdrive = jumpdrive; } + + /// set dock capability + inline void set_dock(const bool dock) { + shipmodel_dock = dock; + } void generate_info(); @@ -92,6 +102,7 @@ public: private: bool shipmodel_jumpdrive; + bool shipmodel_dock; float shipmodel_acceleration; float shipmodel_maxspeed; |