public interface IBulletSnapshot
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2021 Robocode. All Rights Reserved.