summaryrefslogblamecommitdiffstats
path: root/src/Physics/Explodinator.h
blob: e3beeadd016ef0eb8ca684d1fe171c300ceafc24 (plain) (tree)
1
2
3
4
5
6
7
8






            
              




             



                                                                                                      
                                                                               
                                             
                                                                                                                 
 

#pragma once





class cEntity;
class cWorld;




namespace Explodinator
{
	/** Creates an explosion of Power, centred at Position, with ability to set fires as provided.
	For maximum efficiency, Position should be in the centre of the entity or block that exploded.
	The entity pointer is used to trigger OnBreak for the destroyed blocks.
	Kaboom indeed, you drunken wretch. */
	void Kaboom(cWorld & World, Vector3f Position, int Power, bool Fiery, const cEntity * a_ExplodingEntity);
}