|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMineSnapshot
Interface of a mine snapshot at a specific time in a battle. Basically a copy-paste of IBulletSnapshot, which is why I added Flemming and Pavel in the authorlist.
Method Summary | |
---|---|
int |
getColor()
Returns the color of the mine. |
int |
getExplosionImageIndex()
Returns the explosion image index, which is different depending on the type of explosion. |
int |
getFrame()
Returns the current frame number to display, i.e. when the mine explodes. |
int |
getMineId()
Returns the ID of the mine used for identifying the mine in a collection of mines. |
int |
getOwnerIndex()
|
double |
getPower()
Returns the mine power. |
MineState |
getState()
Returns the mine state. |
int |
getVictimIndex()
|
double |
getX()
Returns the X position of the mine. |
double |
getY()
Returns the Y position of the mine. |
boolean |
isExplosion()
Checks if the mine has become an explosion, i.e. when a robot or mine has been hit. |
Method Detail |
---|
MineState getState()
double getPower()
double getX()
double getY()
int getColor()
Color.getRGB()
int getFrame()
isExplosion()
,
getExplosionImageIndex()
boolean isExplosion()
true
if the mine is an explosion; false
otherwise.getFrame()
,
getExplosionImageIndex()
int getExplosionImageIndex()
isExplosion()
,
getExplosionImageIndex()
int getMineId()
int getVictimIndex()
int getOwnerIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |