|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lazywizard.lazylib.combat.entities.SimpleEntity
public class SimpleEntity
A bare-bones implementation of CombatEntityAPI
, mostly useful for EMP arcs.
Constructor Summary | |
---|---|
SimpleEntity(java.lang.Object toFollow)
Creates a CombatEntityAPI that mimics the location of an object
such as a WeaponAPI . |
|
SimpleEntity(org.lwjgl.util.vector.Vector2f location)
Creates a CombatEntityAPI that stays in a single, predefined location. |
Method Summary | |
---|---|
float |
getAngularVelocity()
NONFUNCTIONAL/PLACEHOLDER |
com.fs.starfarer.api.combat.CollisionClass |
getCollisionClass()
NONFUNCTIONAL/PLACEHOLDER |
float |
getCollisionRadius()
NONFUNCTIONAL/PLACEHOLDER |
com.fs.starfarer.api.combat.BoundsAPI |
getExactBounds()
NONFUNCTIONAL/PLACEHOLDER |
float |
getFacing()
NONFUNCTIONAL/PLACEHOLDER |
float |
getHitpoints()
NONFUNCTIONAL/PLACEHOLDER |
float |
getHullLevel()
NONFUNCTIONAL/PLACEHOLDER |
org.lwjgl.util.vector.Vector2f |
getLocation()
Returns the location this SimpleEntity is mimicking. |
float |
getMass()
NONFUNCTIONAL/PLACEHOLDER |
float |
getMaxHitpoints()
NONFUNCTIONAL/PLACEHOLDER |
int |
getOwner()
NONFUNCTIONAL/PLACEHOLDER |
com.fs.starfarer.api.combat.ShieldAPI |
getShield()
NONFUNCTIONAL/PLACEHOLDER |
org.lwjgl.util.vector.Vector2f |
getVelocity()
NONFUNCTIONAL/PLACEHOLDER |
void |
setAngularVelocity(float angVel)
NONFUNCTIONAL/PLACEHOLDER |
void |
setCollisionClass(com.fs.starfarer.api.combat.CollisionClass collisionClass)
NONFUNCTIONAL/PLACEHOLDER |
void |
setFacing(float facing)
NONFUNCTIONAL/PLACEHOLDER |
void |
setMass(float mass)
NONFUNCTIONAL/PLACEHOLDER |
void |
setOwner(int owner)
NONFUNCTIONAL/PLACEHOLDER |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleEntity(java.lang.Object toFollow)
CombatEntityAPI
that mimics the location of an object
such as a WeaponAPI
.
toFollow
- The Object
to mimic the location of. This object
MUST have the method getLocation(), which MUST return a Vector2f
!public SimpleEntity(org.lwjgl.util.vector.Vector2f location)
CombatEntityAPI
that stays in a single, predefined location.
location
- Method Detail |
---|
public org.lwjgl.util.vector.Vector2f getLocation()
SimpleEntity
is mimicking.
getLocation
in interface com.fs.starfarer.api.combat.CombatEntityAPI
Vector2f
passed in at creation, or the result of
getLocation() on the followed Object
, depending on which constructor was used.public org.lwjgl.util.vector.Vector2f getVelocity()
getVelocity
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public float getFacing()
getFacing
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public void setFacing(float facing)
setFacing
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public float getAngularVelocity()
getAngularVelocity
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public void setAngularVelocity(float angVel)
setAngularVelocity
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public int getOwner()
getOwner
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public void setOwner(int owner)
setOwner
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public float getCollisionRadius()
getCollisionRadius
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public com.fs.starfarer.api.combat.CollisionClass getCollisionClass()
getCollisionClass
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public void setCollisionClass(com.fs.starfarer.api.combat.CollisionClass collisionClass)
setCollisionClass
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public float getMass()
getMass
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public void setMass(float mass)
setMass
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public com.fs.starfarer.api.combat.BoundsAPI getExactBounds()
getExactBounds
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public com.fs.starfarer.api.combat.ShieldAPI getShield()
getShield
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public float getHullLevel()
getHullLevel
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public float getHitpoints()
getHitpoints
in interface com.fs.starfarer.api.combat.CombatEntityAPI
public float getMaxHitpoints()
getMaxHitpoints
in interface com.fs.starfarer.api.combat.CombatEntityAPI
|
LazyLib | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |