herzog3d
Class HZObject

java.lang.Object
  extended by herzog3d.HZObject
Direct Known Subclasses:
Base, Effect, Missile, Unit

public abstract class HZObject
extends java.lang.Object


Field Summary
protected  boolean active
           
protected  float dir
           
protected  Model model
           
protected  Vector3f pos
           
protected  float radius
           
protected  Shell shell
           
protected  Material skin
           
protected  ModelState state
           
 
Constructor Summary
HZObject(ReadableVector3f pos)
           
 
Method Summary
 float getColRadius()
           
 float getDir()
           
 Vector3f getPos()
           
 float getRadius()
           
 Vector3f intersects(HZObject other)
           
 boolean isActive()
           
 void move(float x, float y, float z)
           
 void move(Vector3f move)
           
 void setActive(boolean active)
           
 void setModel(Model model)
           
 void setPos(float x, float y, float z)
           
 void setPos(ReadableVector3f v)
           
 void setSkin(Material skin)
           
 void setState(ModelState state)
           
 Vector3f testCollision(ReadableVector3f v1, ReadableVector3f v2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shell

protected Shell shell

active

protected boolean active

pos

protected final Vector3f pos

dir

protected float dir

radius

protected float radius

model

protected Model model

state

protected ModelState state

skin

protected Material skin
Constructor Detail

HZObject

public HZObject(ReadableVector3f pos)
Method Detail

getColRadius

public float getColRadius()

setModel

public void setModel(Model model)

setSkin

public void setSkin(Material skin)

setState

public void setState(ModelState state)

setActive

public void setActive(boolean active)

getPos

public Vector3f getPos()

setPos

public void setPos(float x,
                   float y,
                   float z)

setPos

public void setPos(ReadableVector3f v)

move

public void move(float x,
                 float y,
                 float z)

move

public void move(Vector3f move)

intersects

public Vector3f intersects(HZObject other)

getDir

public float getDir()

getRadius

public float getRadius()

isActive

public boolean isActive()

testCollision

public Vector3f testCollision(ReadableVector3f v1,
                              ReadableVector3f v2)