public class ExplodeTopPiece
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
color |
Point |
colorPos |
boolean |
exploded
Prevent recursive exploding exploded pieces
|
Point |
pos |
double |
prot |
double |
rad |
double |
startTime
When to start moving this piece
|
Point |
vel
Velocity vector
|
Constructor and Description |
---|
ExplodeTopPiece()
Bean constructor
|
ExplodeTopPiece(ExplodeTopPiece other)
Convienence constructor to clone another piece.
|
Modifier and Type | Method and Description |
---|---|
int |
getColor() |
Point |
getColorPos() |
double |
getColorPosX() |
double |
getColorPosY() |
double |
getColorPosZ() |
double |
getFps() |
int |
getFrame() |
int |
getMindex() |
double |
getPosX() |
double |
getPosY() |
double |
getPosZ() |
double |
getProt() |
double |
getRad() |
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 |
setMindex(int mindex) |
void |
setPosX(double x) |
void |
setPosY(double y) |
void |
setPosZ(double z) |
void |
setProt(double prot) |
void |
setRad(double rad) |
public Point pos
public double prot
public double rad
public int color
public Point colorPos
public Point vel
public double startTime
public boolean exploded
public ExplodeTopPiece()
public ExplodeTopPiece(ExplodeTopPiece other)
other
- The piece to clonepublic double getFps()
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 getProt()
public void setProt(double prot)
prot
- the prot to setpublic double getRad()
public void setRad(double rad)
rad
- the rad to set