Package com.prineside.tdi2.explosions
Class GenericExplosion
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Explosion
com.prineside.tdi2.explosions.GenericExplosion
- All Implemented Interfaces:
 Pool.Poolable,KryoSerializable
- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Explosion
Explosion.Factory<T extends Explosion> - 
Field Summary
Fields inherited from class com.prineside.tdi2.Explosion
damage, EXPLOSION_RANGE_ENEMY_SEARCH_SPACING, fromAbility, piercingMultiplier, position, RAY_COUNT, typeFields inherited from class com.prineside.tdi2.Registrable
S - 
Method Summary
Modifier and TypeMethodDescriptioncpy()voidenemyAffected(Enemy enemy, float distanceToEpicenter, float rayPower) voidexplode()booleanisDone()voidvoidsetup(Tower tower, float x, float y, float damage, float rangeInTiles, int splintersCount, float splinterDamage, float splinterDistanceInTiles, Color color, Color splinterTrailColor) voidupdate(float delta) Explosion starts at the epicenter and grows constantly with each update, until it reaches its rangevoidMethods inherited from class com.prineside.tdi2.Explosion
addExplosionParticle, calculateDamage, getRayIndex, getTower, multiplyDamage, resetMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Method Details
- 
write
- Specified by:
 writein interfaceKryoSerializable- Overrides:
 writein classExplosion
 - 
read
- Specified by:
 readin interfaceKryoSerializable- Overrides:
 readin classExplosion
 - 
cpy
 - 
setup
public void setup(Tower tower, float x, float y, float damage, float rangeInTiles, int splintersCount, float splinterDamage, float splinterDistanceInTiles, Color color, Color splinterTrailColor) - Parameters:
 splinterTrailColor- may be null
 - 
explode
public void explode() - 
enemyAffected
 - 
isDone
public boolean isDone() - 
update
public void update(float delta) Description copied from class:ExplosionExplosion starts at the epicenter and grows constantly with each update, until it reaches its range 
 -