public class Bullet
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Checks if the Bullet exists in the view of the BWAPI player.
|
double |
getAngle()
Retrieve's the direction the Bullet is facing.
|
int |
getID()
Retrieves a unique identifier for the current Bullet.
|
Player |
getPlayer()
Retrieves the Player interface that owns the Bullet.
|
Position |
getPosition()
Retrieves the Bullet's current position.
|
int |
getRemoveTimer()
Retrieves the timer that indicates the Bullet's life span.
|
Unit |
getSource()
Retrieves the Unit interface that the Bullet spawned from.
|
Unit |
getTarget()
Retrieves the Unit interface that the Bullet is heading to.
|
Position |
getTargetPosition()
Retrieves the target position that the Bullet is heading to.
|
BulletType |
getType()
Retrieves the type of this Bullet.
|
double |
getVelocityX()
Retrieves the X component of the Bullet's velocity, measured in pixels per frame.
|
double |
getVelocityY()
Retrieves the Y component of the Bullet's velocity, measured in pixels per frame.
|
boolean |
isVisible()
Retrieves the visibility state of the Bullet.
|
boolean |
isVisible(Player player) |
public int getID()
public boolean exists()
public Player getPlayer()
public BulletType getType()
public Unit getSource()
public Position getPosition()
public double getAngle()
public double getVelocityX()
public double getVelocityY()
public Unit getTarget()
public Position getTargetPosition()
public int getRemoveTimer()
public boolean isVisible()
public boolean isVisible(Player player)