public class Earthquake extends Projectile
| Modifier and Type | Field and Description |
|---|---|
static float |
COLLIDER_HEIGHT |
static float |
COLLIDER_WIDTH
Stores the width and height of the Earthquake's rectangle collider in world units.
|
static float |
DAMAGE
Stores the amount of damage dealt by the Earthquake when hitting a Human.
|
static float |
FIRE_VELOCITY_X
Holds the velocity at which the earthquake travels.
|
static float |
FIRE_VELOCITY_Y |
| Constructor and Description |
|---|
Earthquake()
Creates a default Earthquake instance at bottom-center position (0,0).
|
Earthquake(float x,
float y)
Instantiates an Earthquake instance at the given bottom-center (x,y) position.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTarget()
Returns true if the GameObject can be targetted by a Human.
|
fire, getDamage, getFireVelocity, hit, setDamage, updategetAcceleration, getCollider, getObjectId, getPosition, getPreviousPosition, getSkeleton, getStateTime, getTerrainCell, getVelocity, getX, getY, isAbove, moveTo, setAcceleration, setCollider, setObjectId, setPosition, setSkeleton, setStateTime, setTerrainCell, setVelocity, setVelocityX, setVelocityY, setX, setY, updateCollider, updatePositionpublic static final float COLLIDER_WIDTH
public static final float COLLIDER_HEIGHT
public static final float FIRE_VELOCITY_X
public static final float FIRE_VELOCITY_Y
public static final float DAMAGE
public Earthquake()
public Earthquake(float x,
float y)
public boolean canTarget()
GameObjectcanTarget in class GameObject