Package | Description |
---|---|
com.jonathan.survivor.entity | |
com.jonathan.survivor.managers |
Modifier and Type | Method and Description |
---|---|
Human.Direction |
Human.getDirection()
Gets the direction (LEFT or RIGHT) that the GameObject is facing.
|
static Human.Direction |
Human.Direction.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Human.Direction[] |
Human.Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Projectile.fire(float x,
float y,
Human.Direction direction)
Fires the projectile at the given bottom-center (x,y) position and in the given direction.
|
void |
Human.setDirection(Human.Direction direction)
Sets the direction (LEFT or RIGHT) that the GameObject is facing.
|
<T extends Item> |
ItemObject.spawn(float x,
float y,
float velocityMultiplier,
Human.Direction direction)
Spawns the item at the given position.
|
Modifier and Type | Method and Description |
---|---|
Earthquake |
GameObjectManager.spawnEarthquake(float x,
float y,
Human.Direction direction)
Spawns an Earthquake instance at the given bottom-center (x,y) position.
|
ItemObject |
GameObjectManager.spawnItemObject(float x,
float y,
float velocityMultiplier,
Human.Direction direction)
Spawns an ItemObject at the given position.
|