| Modifier and Type | Field and Description |
|---|---|
float |
damage
The damage this bullet deals on impact.
|
Direction |
dir
The direction in which this bullet is moving.
|
int |
ID
The unique ID of the bullet.
|
MapLocation |
location
The current location of this bullet.
|
float |
speed
The speed of this bullet, in units per turn.
|
| Constructor and Description |
|---|
BulletInfo(int ID,
MapLocation location,
Direction dir,
float speed,
float damage) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
float |
getDamage()
Returns the damage this bullet deals on impact.
|
Direction |
getDir()
Returns the direction in which this bullet is moving.
|
int |
getID()
Returns the ID of this body.
|
MapLocation |
getLocation()
Returns the center location of this body.
|
float |
getRadius()
Returns the radius of this body.
|
float |
getSpeed()
Returns the speed of this bullet, in units per turn
|
int |
hashCode() |
boolean |
isBullet()
Returns whether this body is a bullet.
|
boolean |
isRobot()
Returns whether this body is a robot.
|
boolean |
isTree()
Returns whether this body is a tree.
|
java.lang.String |
toString() |
public final int ID
public final float speed
public final float damage
public final Direction dir
public final MapLocation location
public BulletInfo(int ID,
MapLocation location,
Direction dir,
float speed,
float damage)
public float getSpeed()
public float getDamage()
public Direction getDir()
public int getID()
BodyInfopublic MapLocation getLocation()
BodyInfogetLocation in interface BodyInfopublic float getRadius()
BodyInfopublic boolean isRobot()
BodyInfopublic boolean isTree()
BodyInfopublic boolean isBullet()
BodyInfopublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object