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, fromAbility, piercingMultiplier, position, type
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptioncpy()
void
enemyAffected
(Enemy enemy, float distanceToEpicenter, float rayPower) void
explode()
boolean
isDone()
void
void
setup
(Tower tower, float x, float y, float damage, float rangeInTiles, int splintersCount, float splinterDamage, float splinterDistanceInTiles, Color color, Color splinterTrailColor) void
update
(float delta) Взрыв идет из эпицентра, здесь он постепенно растетvoid
Methods inherited from class com.prineside.tdi2.Explosion
addExplosionParticle, calculateDamage, getRayIndex, getTower, multiplyDamage, reset
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classExplosion
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in 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:Explosion
Взрыв идет из эпицентра, здесь он постепенно растет
-