LazyLib

org.lazywizard.lazylib.combat.entities
Class SimpleEntity

Object
  extended by SimpleEntity
All Implemented Interfaces:
CombatEntityAPI

public class SimpleEntity
extends Object

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

Since:
1.4
Author:
LazyWizard

Constructor Summary
SimpleEntity(Object toFollow)
          Creates a CombatEntityAPI that mimics the location of an object such as a WeaponAPI.
SimpleEntity(Vector2f location)
          Creates a CombatEntityAPI that stays in a single, predefined location.
 
Method Summary
 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 this SimpleEntity is mimicking.
 float getMass()
          NONFUNCTIONAL/PLACEHOLDER
 float getMaxHitpoints()
          NONFUNCTIONAL/PLACEHOLDER
 int getOwner()
          NONFUNCTIONAL/PLACEHOLDER
 ShieldAPI getShield()
          NONFUNCTIONAL/PLACEHOLDER
 Vector2f getVelocity()
          NONFUNCTIONAL/PLACEHOLDER
 void setAngularVelocity(float angVel)
          NONFUNCTIONAL/PLACEHOLDER
 void setCollisionClass(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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEntity

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

Parameters:
location -
Since:
1.4

SimpleEntity

public SimpleEntity(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
Method Detail

getLocation

public Vector2f getLocation()
Returns the location this SimpleEntity is mimicking.

Specified by:
getLocation in interface 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 Vector2f getVelocity()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getVelocity in interface CombatEntityAPI

getFacing

public float getFacing()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getFacing in interface CombatEntityAPI

setFacing

public void setFacing(float facing)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setFacing in interface CombatEntityAPI

getAngularVelocity

public float getAngularVelocity()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getAngularVelocity in interface CombatEntityAPI

setAngularVelocity

public void setAngularVelocity(float angVel)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setAngularVelocity in interface CombatEntityAPI

getOwner

public int getOwner()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getOwner in interface CombatEntityAPI

setOwner

public void setOwner(int owner)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setOwner in interface CombatEntityAPI

getCollisionRadius

public float getCollisionRadius()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getCollisionRadius in interface CombatEntityAPI

getCollisionClass

public CollisionClass getCollisionClass()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getCollisionClass in interface CombatEntityAPI

setCollisionClass

public void setCollisionClass(CollisionClass collisionClass)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setCollisionClass in interface CombatEntityAPI

getMass

public float getMass()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getMass in interface CombatEntityAPI

setMass

public void setMass(float mass)
NONFUNCTIONAL/PLACEHOLDER

Specified by:
setMass in interface CombatEntityAPI

getExactBounds

public BoundsAPI getExactBounds()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getExactBounds in interface CombatEntityAPI

getShield

public ShieldAPI getShield()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getShield in interface CombatEntityAPI

getHullLevel

public float getHullLevel()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getHullLevel in interface CombatEntityAPI

getHitpoints

public float getHitpoints()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getHitpoints in interface CombatEntityAPI

getMaxHitpoints

public float getMaxHitpoints()
NONFUNCTIONAL/PLACEHOLDER

Specified by:
getMaxHitpoints in interface CombatEntityAPI

LazyLib