diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-13 18:42:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-13 18:42:15 +0000 |
commit | 8506f3a8af135c55fdf9adae2859dfa210a2aa0f (patch) | |
tree | d952fcefb529159fde6d49d3b77c0275341b9019 /src/game/base/shipmodel.h | |
parent | a2c7b459910ca386117cc115a40da77be5224225 (diff) |
adds a ship key for world entities which applies ship model settings to a world entity
Diffstat (limited to 'src/game/base/shipmodel.h')
-rw-r--r-- | src/game/base/shipmodel.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/base/shipmodel.h b/src/game/base/shipmodel.h index 25473d4..bbb5798 100644 --- a/src/game/base/shipmodel.h +++ b/src/game/base/shipmodel.h @@ -16,6 +16,8 @@ namespace game { +class Ship; + /// ship model specification class ShipModel : public core::Info { @@ -87,6 +89,18 @@ public: inline const Template *model_template() const { return shipmodel_template; } + + /* ---- actors ---------------------------------------------------- */ + + /** + * @brief apply ship type settings to an entity + */ + void apply(core::Entity *entity) const; + + /** + * @brief apply ship type settings to a ship + */ + void apply(Ship *ship) const; protected: |