Exposed blowUp method to console.

This commit is contained in:
Daniel Buckmaster 2013-08-02 19:00:28 +10:00
parent c75d6feb20
commit ce73a6b11a
2 changed files with 8 additions and 1 deletions

View file

@ -4613,6 +4613,11 @@ DefineEngineMethod( ShapeBase, isEnabled, bool, (),,
return object->getDamageState() == ShapeBase::Enabled;
}
DefineEngineMethod(ShapeBase, blowUp, void, (),, "@brief Explodes an object into pieces.")
{
object->blowUp();
}
DefineEngineMethod( ShapeBase, applyDamage, void, ( F32 amount ),,
"@brief Increment the current damage level by the specified amount.\n\n"

View file

@ -1121,7 +1121,6 @@ protected:
virtual void ejectShellCasing( U32 imageSlot );
virtual void updateDamageLevel();
virtual void updateDamageState();
virtual void blowUp();
virtual void onImpact(SceneObject* obj, VectorF vec);
virtual void onImpact(VectorF vec);
/// @}
@ -1307,6 +1306,9 @@ public:
/// Returns the recharge rate
F32 getRechargeRate() { return mRechargeRate; }
/// Makes the shape explode.
virtual void blowUp();
/// @}
/// @name Script sounds