Package com.prineside.tdi2.projectiles
Class BasicProjectile
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Projectile
com.prineside.tdi2.EnemyFollowingProjectile
com.prineside.tdi2.projectiles.BasicProjectile
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable
,com.esotericsoftware.kryo.KryoSerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.prineside.tdi2.Projectile
Projectile.Factory<T extends Projectile>
-
Field Summary
Fields inherited from class com.prineside.tdi2.EnemyFollowingProjectile
DEFAULT_MAX_ROT_SPEED, DEFAULT_MAX_ROT_SPEED_DYNAMIC, drawAngle, drawPosition, maxRotationSpeed, maxRotationSpeedDynamic, speed, start
Fields inherited from class com.prineside.tdi2.Projectile
id, position, RAYCAST_INTERVAL_MIN, type
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(com.badlogic.gdx.graphics.g2d.Batch batch, float delta) void
hit()
Вызывается, когда снаряд долетел до целиvoid
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
reset()
Resets the object for reuse.void
void
toString()
void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.EnemyFollowingProjectile
applyDrawInterpolation, flyOnEnemy, getPosition, getTarget, hasReachedTarget, isDone, setTarget, update
Methods inherited from class com.prineside.tdi2.Projectile
getDamage, multiplyDamage, onDone, setDamage, setup
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
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 classEnemyFollowingProjectile
-
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 classEnemyFollowingProjectile
-
setup
-
setUnregistered
public void setUnregistered()- Overrides:
setUnregistered
in classEnemyFollowingProjectile
-
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
- Overrides:
reset
in classEnemyFollowingProjectile
-
hit
public void hit()Description copied from class:Projectile
Вызывается, когда снаряд долетел до цели- Overrides:
hit
in classProjectile
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float delta) - Specified by:
draw
in classProjectile
-
toString
- Overrides:
toString
in classEnemyFollowingProjectile
-