From: <sv...@ww...> - 2005-12-04 10:11:50
|
Author: mkrose Date: 2005-12-04 02:11:38 -0800 (Sun, 04 Dec 2005) New Revision: 1712 Modified: trunk/CSP/csp/cspsim/stores/Projectile.cpp trunk/CSP/csp/cspsim/stores/Projectile.h Log: Fix forward Ref<> declaration. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1712 Modified: trunk/CSP/csp/cspsim/stores/Projectile.cpp =================================================================== --- trunk/CSP/csp/cspsim/stores/Projectile.cpp 2005-12-04 09:45:13 UTC (rev 1711) +++ trunk/CSP/csp/cspsim/stores/Projectile.cpp 2005-12-04 10:11:38 UTC (rev 1712) @@ -33,6 +33,13 @@ CSP_XML_BEGIN(Projectile) CSP_XML_END +// TODO SimObject probably needs a specialized type for Projectiles. +Projectile::Projectile(): DynamicObject(TYPE_AIR_UNIT), m_DetachedModel(false) { +} + +Projectile::~Projectile() { +} + void Projectile::prepareRelease(Ref<DynamicObject> const &/*parent*/, Ref<Store> const &store) { assert(store.valid() && !m_Store); m_Store = store; Modified: trunk/CSP/csp/cspsim/stores/Projectile.h =================================================================== --- trunk/CSP/csp/cspsim/stores/Projectile.h 2005-12-04 09:45:13 UTC (rev 1711) +++ trunk/CSP/csp/cspsim/stores/Projectile.h 2005-12-04 10:11:38 UTC (rev 1712) @@ -40,8 +40,7 @@ public: CSP_DECLARE_OBJECT(Projectile) - // TODO SimObject probably needs a specialized type for Projectiles. - Projectile(): DynamicObject(TYPE_AIR_UNIT), m_DetachedModel(false) { } + Projectile(); /** Called by StoresManagementSystem when releasing a store from a parent object. * The newly created Projectile instance is responsible for loading necessary @@ -53,6 +52,8 @@ virtual void prepareRelease(Ref<DynamicObject> const &parent, Ref<Store> const &store); protected: + virtual ~Projectile(); + virtual void onEnterScene(); virtual void createSceneModel(); |