LazyLib

org.lazywizard.lazylib.combat.entities
Class SimpleEntity

java.lang.Object
  extended by org.lazywizard.lazylib.combat.entities.SimpleEntity
All Implemented Interfaces:
com.fs.starfarer.api.combat.CombatEntityAPI

public class SimpleEntity
extends java.lang.Object

A bare-bones implementation of CombatEntityAPI, mostly useful for EMP arcs.

Since:
1.4
Author:
LazyWizard

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

SimpleEntity

public SimpleEntity(java.lang.Object toFollow)
Creates a CombatEntityAPI that mimics the location of an object such as a WeaponAPI.

Parameters:
toFollow - The Object to mimic the location of. This object MUST have the method getLocation(), which MUST return a Vector2f!
Since:
1.4

SimpleEntity

public SimpleEntity(org.lwjgl.util.vector.Vector2f location)
Creates a CombatEntityAPI that stays in a single, predefined location.

Parameters:
location -
Since:
1.4
Method Detail

getLocation

public org.lwjgl.util.vector.Vector2f getLocation()
Returns the location this SimpleEntity is mimicking.

Specified by:
getLocation in interface com.fs.starfarer.api.combat.CombatEntityAPI
Returns:
The Vector2f passed in at creation, or the result of getLocation() on the followed Object, depending on which constructor was used.
Since:
1.4

getVelocity

public org.lwjgl.util.vector.Vector2f getVelocity()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getVelocity in interface com.fs.starfarer.api.combat.CombatEntityAPI

getFacing

public float getFacing()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getFacing in interface com.fs.starfarer.api.combat.CombatEntityAPI

setFacing

public void setFacing(float facing)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setFacing in interface com.fs.starfarer.api.combat.CombatEntityAPI

getAngularVelocity

public float getAngularVelocity()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getAngularVelocity in interface com.fs.starfarer.api.combat.CombatEntityAPI

setAngularVelocity

public void setAngularVelocity(float angVel)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setAngularVelocity in interface com.fs.starfarer.api.combat.CombatEntityAPI

getOwner

public int getOwner()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getOwner in interface com.fs.starfarer.api.combat.CombatEntityAPI

setOwner

public void setOwner(int owner)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setOwner in interface com.fs.starfarer.api.combat.CombatEntityAPI

getCollisionRadius

public float getCollisionRadius()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getCollisionRadius in interface com.fs.starfarer.api.combat.CombatEntityAPI

getCollisionClass

public com.fs.starfarer.api.combat.CollisionClass getCollisionClass()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getCollisionClass in interface com.fs.starfarer.api.combat.CombatEntityAPI

setCollisionClass

public void setCollisionClass(com.fs.starfarer.api.combat.CollisionClass collisionClass)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setCollisionClass in interface com.fs.starfarer.api.combat.CombatEntityAPI

getMass

public float getMass()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getMass in interface com.fs.starfarer.api.combat.CombatEntityAPI

setMass

public void setMass(float mass)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setMass in interface com.fs.starfarer.api.combat.CombatEntityAPI

getExactBounds

public com.fs.starfarer.api.combat.BoundsAPI getExactBounds()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getExactBounds in interface com.fs.starfarer.api.combat.CombatEntityAPI

getShield

public com.fs.starfarer.api.combat.ShieldAPI getShield()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getShield in interface com.fs.starfarer.api.combat.CombatEntityAPI

getHullLevel

public float getHullLevel()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getHullLevel in interface com.fs.starfarer.api.combat.CombatEntityAPI

getHitpoints

public float getHitpoints()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getHitpoints in interface com.fs.starfarer.api.combat.CombatEntityAPI

getMaxHitpoints

public float getMaxHitpoints()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getMaxHitpoints in interface com.fs.starfarer.api.combat.CombatEntityAPI

LazyLib