be.saltwater.jaqel.scheduler
Class CreatureLocator
java.lang.Object
be.saltwater.jaqel.scheduler.CreatureLocator
- public class CreatureLocator
- extends java.lang.Object
Class to group the logic of placing a creature on the maze at a certain position. This is needed by MoveBehavior but also by Level when a Creature is added. Since this class is used inside a behavior object that is called on every frame (MoveBehavior), memory allocations are avoided as much as possible during the use of the class. This class is not thread safe!
|
Method Summary |
void |
getRealCoords(java.awt.Point p,
java.awt.geom.Point2D r)
|
void |
setTranslation(javax.vecmath.Vector3f v,
javax.media.j3d.TransformGroup tg)
|
void |
translate(java.awt.Point p1,
java.awt.Point p2,
double alpha,
javax.media.j3d.TransformGroup tg)
|
void |
translate(java.awt.Point p1,
javax.media.j3d.TransformGroup tg)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreatureLocator
public CreatureLocator(Maze maze)
translate
public void translate(java.awt.Point p1,
javax.media.j3d.TransformGroup tg)
translate
public void translate(java.awt.Point p1,
java.awt.Point p2,
double alpha,
javax.media.j3d.TransformGroup tg)
setTranslation
public void setTranslation(javax.vecmath.Vector3f v,
javax.media.j3d.TransformGroup tg)
getRealCoords
public void getRealCoords(java.awt.Point p,
java.awt.geom.Point2D r)