|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBulletSnapshot
Interface of a bullet snapshot at a specific time in a battle.
Method Summary | |
---|---|
int |
getBulletId()
Returns the ID of the bullet used for identifying the bullet in a collection of bullets. |
int |
getColor()
Returns the color of the bullet. |
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 bullet explodes. |
double |
getHeading()
|
int |
getOwnerIndex()
|
double |
getPaintX()
Returns the X painting position of the bullet. |
double |
getPaintY()
Returns the Y painting position of the bullet. |
double |
getPower()
Returns the bullet power. |
BulletState |
getState()
Returns the bullet state. |
int |
getVictimIndex()
|
double |
getX()
Returns the X position of the bullet. |
double |
getY()
Returns the Y position of the bullet. |
boolean |
isExplosion()
Checks if the bullet has become an explosion, i.e. when it a robot or bullet has been hit. |
Method Detail |
---|
BulletState getState()
double getPower()
double getX()
double getY()
double getPaintX()
double getPaintY()
int getColor()
Color.getRGB()
int getFrame()
isExplosion()
,
getExplosionImageIndex()
boolean isExplosion()
true
if the bullet is an explosion; false
otherwise.getFrame()
,
getExplosionImageIndex()
int getExplosionImageIndex()
isExplosion()
,
getExplosionImageIndex()
int getBulletId()
double getHeading()
int getVictimIndex()
int getOwnerIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |