LazyLib

org.lazywizard.lazylib.combat.entities
Class AnchoredEntity

Object
  extended by AnchoredEntity
All Implemented Interfaces:
CombatEntityAPI

public class AnchoredEntity
extends Object

An implementation of CombatEntityAPI that follows and rotates with another anchoring CombatEntityAPI.

Since:
1.5
Author:
LazyWizard

Constructor Summary
AnchoredEntity(CombatEntityAPI anchor, Vector2f location)
          Creates a CombatEntityAPI that follows and rotates with another anchoring CombatEntityAPI.
 
Method Summary
 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 this entity's velocity.
 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

AnchoredEntity

public AnchoredEntity(CombatEntityAPI anchor,
                      Vector2f location)
Creates a CombatEntityAPI that follows and rotates with another anchoring CombatEntityAPI.

Parameters:
anchor - The CombatEntityAPI to follow and rotate with.
location - The location relative to anchor to track.
Since:
1.5
Method Detail

getLocation

public Vector2f getLocation()
Returns the location of this entity, calculated to be relative to its anchor.

Specified by:
getLocation in interface CombatEntityAPI
Returns:
The location of this entity.
Since:
1.5

getVelocity

public Vector2f getVelocity()
Returns this entity's velocity.

Specified by:
getVelocity in interface CombatEntityAPI
Returns:
The velocity of this entity (will be the same as its anchor).
Since:
1.5

getAnchor

public CombatEntityAPI getAnchor()
Returns the CombatEntityAPI this entity is anchored to.

Returns:
The CombatEntityAPI this entity is anchored to.
Since:
1.5

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