robocode.control.snapshot
Interface IBulletSnapshot
public interface IBulletSnapshot
Interface of a bullet snapshot.
- Pavel Savara (original)
- Flemming N. Larsen (contributor)
int | getColor() - Returns the color of the bullet.
|
int | getExplosionImageIndex() - Returns the index to which explosion image that must be rendered.
|
int | getFrame() - Returns the frame number to display.
|
double | getPaintX() - Returns the x coordinate where to paint the bullet.
|
double | getPaintY() - Returns the y coordinate where to paint the bullet.
|
double | getPower() - Returns the bullet power.
|
BulletState | getState() - Returns the bullet state.
|
double | getX() - Returns the x coordinate of the bullet.
|
double | getY() - Returns the y coordinate of the bullet.
|
boolean | isExplosion() - Returns the flag specifying if this bullet has turned into an explosion.
|
getColor
public int getColor()
Returns the color of the bullet.
- a RGBA color value. (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue)
getExplosionImageIndex
public int getExplosionImageIndex()
Returns the index to which explosion image that must be rendered.
- the index to which explosion image that must be rendered.
getFrame
public int getFrame()
Returns the frame number to display.
- the frame number to display.
getPaintX
public double getPaintX()
Returns the x coordinate where to paint the bullet.
- the x coordinate where to paint the bullet.
getPaintY
public double getPaintY()
Returns the y coordinate where to paint the bullet.
- the y coordinate where to paint the bullet.
getPower
public double getPower()
Returns the bullet power.
getState
public BulletState getState()
Returns the bullet state.
getX
public double getX()
Returns the x coordinate of the bullet.
- the x coordinate of the bullet.
getY
public double getY()
Returns the y coordinate of the bullet.
- the y coordinate of the bullet.
isExplosion
public boolean isExplosion()
Returns the flag specifying if this bullet has turned into an explosion.
true
if this bullet has turned into an explosion;
false
otherwise