Package com.prineside.tdi2
Class Explosion
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Explosion
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
,com.esotericsoftware.kryo.KryoSerializable
- Direct Known Subclasses:
AirFallExplosion
,CannonExplosion
,FireballExplosion
,GenericExplosion
,MissileExplosion
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
float
com.badlogic.gdx.math.Vector2
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExplosionParticle
(com.badlogic.gdx.graphics.Color color, LimitedParticleType type) static float
calculateDamage
(float damage, float distanceToCenter, float rayPower) cpy()
void
explode()
static int
getRayIndex
(com.badlogic.gdx.math.Vector2 a, com.badlogic.gdx.math.Vector2 b) getTower()
boolean
isDone()
void
multiplyDamage
(float mul) void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
reset()
Resets the object for reuse.void
update
(float delta) Взрыв идет из эпицентра, здесь он постепенно растетvoid
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
type
-
position
public com.badlogic.gdx.math.Vector2 position -
damage
public float damage -
fromAbility
-
piercingMultiplier
public float piercingMultiplier
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
write
in classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
- Overrides:
read
in classRegistrable
-
getTower
-
cpy
-
reset
public void reset()Description copied from interface:com.badlogic.gdx.utils.Pool.Poolable
Resets the object for reuse. Object references should be nulled and fields may be set to default values.- Specified by:
reset
in interfacecom.badlogic.gdx.utils.Pool.Poolable
-
multiplyDamage
public void multiplyDamage(float mul) -
explode
public void explode() -
calculateDamage
public static float calculateDamage(float damage, float distanceToCenter, float rayPower) -
getRayIndex
public static int getRayIndex(com.badlogic.gdx.math.Vector2 a, com.badlogic.gdx.math.Vector2 b) -
update
public void update(float delta) Взрыв идет из эпицентра, здесь он постепенно растет -
addExplosionParticle
-
isDone
public boolean isDone()
-