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 TypeFieldDescriptionfloatfloatcom.badlogic.gdx.math.Vector2Fields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExplosionParticle(com.badlogic.gdx.graphics.Color color, LimitedParticleType type) static floatcalculateDamage(float damage, float distanceToCenter, float rayPower) cpy()voidexplode()static intgetRayIndex(com.badlogic.gdx.math.Vector2 a, com.badlogic.gdx.math.Vector2 b) getTower()booleanisDone()voidmultiplyDamage(float mul, Ability byAbility) voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidreset()Resets the object for reuse.voidupdate(float delta) Взрыв идет из эпицентра, здесь он постепенно растетvoidwrite(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:
writein interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
writein classRegistrable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable- Overrides:
readin classRegistrable
-
getTower
-
cpy
-
reset
public void reset()Description copied from interface:com.badlogic.gdx.utils.Pool.PoolableResets the object for reuse. Object references should be nulled and fields may be set to default values.- Specified by:
resetin interfacecom.badlogic.gdx.utils.Pool.Poolable
-
multiplyDamage
-
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()
-