public class Magnet
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
MagnetAnimator |
animator |
Point |
botRight |
double |
height |
double |
maxSpeed |
java.lang.String |
name |
Point |
pos
Where we are
|
boolean |
postParade
Are we hiding after the parade?
|
double |
rot |
Point |
targetPos
Where we want to be
|
double |
targetRot |
Point |
targetVec
Direction we want to move in
|
Point |
topLeft |
Point |
vec
Direction we moving in
|
double |
width |
Constructor and Description |
---|
Magnet()
Creates a new instance of Magnet
|
Magnet(java.lang.String _name,
double _x,
double _y,
double _rot) |
Modifier and Type | Method and Description |
---|---|
double |
getFps() |
int |
getFrame() |
int |
getMindex() |
double |
getRot() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
setFps(double fps) |
void |
setFrame(int frame) |
void |
setMindex(int mindex) |
void |
setRot(double rot) |
void |
setTarget(double _x,
double _y,
double _rot) |
void |
setTarget(Point p,
double _rot) |
void |
setX(double x) |
void |
setY(double y) |
void |
setZ(double z) |
public Point pos
public double rot
public java.lang.String name
public double width
public double height
public Point topLeft
public Point botRight
public Point vec
public double maxSpeed
public Point targetPos
public double targetRot
public Point targetVec
public boolean postParade
public MagnetAnimator animator
public Magnet()
public Magnet(java.lang.String _name, double _x, double _y, double _rot)
public int getFrame()
public void setFrame(int frame)
frame
- the frame to setpublic int getMindex()
public void setMindex(int mindex)
mindex
- the index to setpublic double getFps()
public void setFps(double fps)
fps
- the fps to setpublic void setTarget(double _x, double _y, double _rot)
public void setTarget(Point p, double _rot)
public double getX()
public double getY()
public double getZ()
public double getRot()
public void setX(double x)
public void setY(double y)
public void setZ(double z)
public void setRot(double rot)