public class ExplodePiece
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
double |
aimAge
how long does it take this piece to lay down 90 degrees
|
int |
color |
Point |
colorPos |
double |
length |
Point |
pos |
double |
prot
rotation copied from the piece that created this explosion
|
double |
rad |
Point |
rot |
double |
startTime
When to start moving this piece
|
Point |
vel
Velocity vector
|
Constructor and Description |
---|
ExplodePiece() |
Modifier and Type | Method and Description |
---|---|
ExplodePiece |
clone() |
int |
getColor() |
Point |
getColorPos() |
double |
getColorPosX() |
double |
getColorPosY() |
double |
getColorPosZ() |
double |
getFps() |
int |
getFrame() |
double |
getLength() |
int |
getMindex() |
double |
getPosX() |
double |
getPosY() |
double |
getPosZ() |
double |
getRad() |
double |
getRotX() |
double |
getRotY() |
double |
getRotZ() |
void |
setColor(int color) |
void |
setColorPos(Point colorPos) |
void |
setColorPosX(double x) |
void |
setColorPosY(double y) |
void |
setColorPosZ(double z) |
void |
setFps(double fps) |
void |
setFrame(int frame) |
void |
setLength(double length) |
void |
setMindex(int mindex) |
void |
setPosX(double x) |
void |
setPosY(double y) |
void |
setPosZ(double z) |
void |
setRad(double rad) |
void |
setRotX(double x) |
void |
setRotY(double y) |
void |
setRotZ(double z) |
public Point pos
public Point rot
public double rad
public int color
public Point colorPos
public double length
public Point vel
public double startTime
public double aimAge
public double prot
public double getFps()
public ExplodePiece clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setFps(double fps)
fps
- the fps to setpublic int getFrame()
public void setFrame(int frame)
frame
- the frame to setpublic int getMindex()
public void setMindex(int mindex)
mindex
- the mindex to setpublic int getColor()
public void setColor(int color)
color
- the color to setpublic Point getColorPos()
public void setColorPos(Point colorPos)
colorPos
- the colorPos to setpublic double getColorPosX()
public void setColorPosX(double x)
public double getColorPosY()
public void setColorPosY(double y)
public double getColorPosZ()
public void setColorPosZ(double z)
public double getPosX()
public double getPosY()
public double getPosZ()
public void setPosX(double x)
public void setPosY(double y)
public void setPosZ(double z)
public double getRotX()
public double getRotY()
public double getRotZ()
public void setRotX(double x)
public void setRotY(double y)
public void setRotZ(double z)
public double getRad()
public void setRad(double rad)
rad
- the rad to setpublic double getLength()
public void setLength(double length)
length
- the length to set