public class SimpleEntity extends Object
CombatEntityAPI, mostly useful for
decorative EMP arc targeting. These entities do not actually exist on the
battle map, so most other methods that take a CombatEntityAPI will
fail if you use one of these as a parameter.| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleEntity.SimpleEntityType |
| Modifier and Type | Field and Description |
|---|---|
protected ShipEngineControllerAPI.ShipEngineAPI |
engine |
protected Vector2f |
location |
protected SimpleEntity.SimpleEntityType |
type |
protected WeaponAPI |
weapon |
| Constructor and Description |
|---|
SimpleEntity(ShipEngineControllerAPI.ShipEngineAPI engine)
Creates a
CombatEntityAPI that mimics the location of a
ShipEngineControllerAPI.ShipEngineAPI. |
SimpleEntity(Vector2f location)
Creates a
CombatEntityAPI that stays in a single, predefined
location. |
SimpleEntity(WeaponAPI weapon)
Creates a
CombatEntityAPI that mimics the location of a
WeaponAPI. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAI()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getAngularVelocity()
NONFUNCTIONAL/PLACEHOLDER
|
CollisionClass |
getCollisionClass()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getCollisionRadius()
NONFUNCTIONAL/PLACEHOLDER
|
@Nullable ShipEngineControllerAPI.ShipEngineAPI |
getEngine()
Returns the
ShipEngineControllerAPI.ShipEngineAPI this entity is attached to, if any. |
BoundsAPI |
getExactBounds()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getFacing()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getHitpoints()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getHullLevel()
NONFUNCTIONAL/PLACEHOLDER
|
Vector2f |
getLocation()
Returns the location this
SimpleEntity is mimicking. |
float |
getMass()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getMaxHitpoints()
NONFUNCTIONAL/PLACEHOLDER
|
int |
getOwner()
NONFUNCTIONAL/PLACEHOLDER
|
ShieldAPI |
getShield()
NONFUNCTIONAL/PLACEHOLDER
|
SimpleEntity.SimpleEntityType |
getType()
Returns the
SimpleEntity.SimpleEntityType corresponding to the constructor
used to create this object. |
Vector2f |
getVelocity()
NONFUNCTIONAL/PLACEHOLDER
|
@Nullable WeaponAPI |
getWeapon()
Returns the
WeaponAPI this entity is attached to, if any. |
void |
setAngularVelocity(float angVel)
NONFUNCTIONAL/PLACEHOLDER
|
void |
setCollisionClass(CollisionClass collisionClass)
NONFUNCTIONAL/PLACEHOLDER
|
void |
setCollisionRadius(float arg0)
NONFUNCTIONAL/PLACEHOLDER
|
void |
setFacing(float facing)
NONFUNCTIONAL/PLACEHOLDER
|
void |
setMass(float mass)
NONFUNCTIONAL/PLACEHOLDER
|
void |
setOwner(int owner)
NONFUNCTIONAL/PLACEHOLDER
|
protected final SimpleEntity.SimpleEntityType type
protected Vector2f location
protected WeaponAPI weapon
protected ShipEngineControllerAPI.ShipEngineAPI engine
public SimpleEntity(Vector2f location)
CombatEntityAPI that stays in a single, predefined
location. This version is a simple wrapper around a Vector2f
and costs virtually nothing.location - The Vector2f that getLocation() should return.public SimpleEntity(WeaponAPI weapon)
CombatEntityAPI that mimics the location of a
WeaponAPI.weapon - The WeaponAPI whose location getLocation() should
return.public SimpleEntity(ShipEngineControllerAPI.ShipEngineAPI engine)
CombatEntityAPI that mimics the location of a
ShipEngineControllerAPI.ShipEngineAPI.engine - The ShipEngineControllerAPI.ShipEngineAPI whose location getLocation()
should return.public Vector2f getLocation()
SimpleEntity is mimicking.@Nullable public @Nullable WeaponAPI getWeapon()
WeaponAPI this entity is attached to, if any.WeaponAPI passed into the constructor, or
null if another constructor was used.@Nullable public @Nullable ShipEngineControllerAPI.ShipEngineAPI getEngine()
ShipEngineControllerAPI.ShipEngineAPI this entity is attached to, if any.ShipEngineControllerAPI.ShipEngineAPI passed into the constructor, or
null if another constructor was used.public SimpleEntity.SimpleEntityType getType()
SimpleEntity.SimpleEntityType corresponding to the constructor
used to create this object.public Vector2f getVelocity()
getVelocity in interface CombatEntityAPIpublic float getFacing()
getFacing in interface CombatEntityAPIpublic void setFacing(float facing)
setFacing in interface CombatEntityAPIpublic float getAngularVelocity()
getAngularVelocity in interface CombatEntityAPIpublic void setAngularVelocity(float angVel)
setAngularVelocity in interface CombatEntityAPIpublic int getOwner()
getOwner in interface CombatEntityAPIpublic void setOwner(int owner)
setOwner in interface CombatEntityAPIpublic float getCollisionRadius()
getCollisionRadius in interface CombatEntityAPIpublic CollisionClass getCollisionClass()
getCollisionClass in interface CombatEntityAPIpublic void setCollisionClass(CollisionClass collisionClass)
setCollisionClass in interface CombatEntityAPIpublic float getMass()
getMass in interface CombatEntityAPIpublic void setMass(float mass)
setMass in interface CombatEntityAPIpublic BoundsAPI getExactBounds()
getExactBounds in interface CombatEntityAPIpublic ShieldAPI getShield()
getShield in interface CombatEntityAPIpublic float getHullLevel()
getHullLevel in interface CombatEntityAPIpublic float getHitpoints()
getHitpoints in interface CombatEntityAPIpublic float getMaxHitpoints()
getMaxHitpoints in interface CombatEntityAPIpublic void setCollisionRadius(float arg0)
setCollisionRadius in interface CombatEntityAPIpublic Object getAI()
getAI in interface CombatEntityAPI