Package com.prineside.tdi2.explosions
Class CannonExplosion
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Explosion
com.prineside.tdi2.explosions.CannonExplosion
- 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
FieldsFields 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 TypeMethodDescriptionvoidenemyAffected(Enemy enemy, float distanceToEpicenter, float rayPower) voidexplode()booleanisDone()voidvoidsetup(Tower tower, float x, float y, float damage, float rangeInTiles, int splintersCount, float splintersDamageMultiplier, float splintersFlyDistance) 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, cpy, getRayIndex, getTower, multiplyDamage, resetMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered 
- 
Field Details
- 
throwBackDistance
public float throwBackDistance 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfaceKryoSerializable- Overrides:
 writein classExplosion
 - 
read
- Specified by:
 readin interfaceKryoSerializable- Overrides:
 readin classExplosion
 - 
setup
public void setup(Tower tower, float x, float y, float damage, float rangeInTiles, int splintersCount, float splintersDamageMultiplier, float splintersFlyDistance)  - 
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 
 -