public class AnchoredEntity extends Object
CombatEntityAPI that follows and rotates
with another anchoring CombatEntityAPI.| Modifier and Type | Field and Description |
|---|---|
protected CombatEntityAPI |
anchor |
protected float |
relativeAngle |
protected float |
relativeDistance |
| Constructor and Description |
|---|
AnchoredEntity(CombatEntityAPI anchor,
Vector2f location)
Creates a
CombatEntityAPI that follows and rotates with another
anchoring CombatEntityAPI. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAI()
NONFUNCTIONAL/PLACEHOLDER
|
CombatEntityAPI |
getAnchor()
Returns the
CombatEntityAPI this entity is anchored to. |
float |
getAngularVelocity()
NONFUNCTIONAL/PLACEHOLDER
|
CollisionClass |
getCollisionClass()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getCollisionRadius()
NONFUNCTIONAL/PLACEHOLDER
|
BoundsAPI |
getExactBounds()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getFacing()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getHitpoints()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getHullLevel()
NONFUNCTIONAL/PLACEHOLDER
|
Vector2f |
getLocation()
Returns the location of this entity, calculated to be relative to
its anchor.
|
float |
getMass()
NONFUNCTIONAL/PLACEHOLDER
|
float |
getMaxHitpoints()
NONFUNCTIONAL/PLACEHOLDER
|
int |
getOwner()
NONFUNCTIONAL/PLACEHOLDER
|
ShieldAPI |
getShield()
NONFUNCTIONAL/PLACEHOLDER
|
Vector2f |
getVelocity()
Returns the velocity of this entity's anchor (and by definition this entity's velocity as well).
|
void |
reanchor(CombatEntityAPI newAnchor,
Vector2f newLocation)
Reorient this entity around a new anchor.
|
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 CombatEntityAPI anchor
protected float relativeDistance
protected float relativeAngle
public AnchoredEntity(CombatEntityAPI anchor,
Vector2f location)
CombatEntityAPI that follows and rotates with another
anchoring CombatEntityAPI.anchor - The CombatEntityAPI to follow and rotate with.location - The location relative to anchor to track.public void reanchor(CombatEntityAPI newAnchor,
Vector2f newLocation)
newAnchor - The CombatEntityAPI to follow and rotate with.newLocation - The location relative to anchor to track.public Vector2f getLocation()
getLocation in interface CombatEntityAPIpublic Vector2f getVelocity()
getVelocity in interface CombatEntityAPIpublic CombatEntityAPI getAnchor()
CombatEntityAPI this entity is anchored to.CombatEntityAPI this entity is anchored to.public 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