|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrc.yoda.utils.VirtualBullet
public class VirtualBullet
VirutalBullet that contains the atributtes needed to update and track a Virtual Bullet for Gun Stats
Field Summary | |
---|---|
java.lang.String |
gunName
The name of the Gun that fired this Virtual Bullet |
double |
heading
The heading in radians this Virtual Bullet is travlling |
java.awt.geom.Point2D.Double |
location
The current location of this Virtual Bullet |
boolean |
real
Whether this Virtual bullet is also reconized by Robocode as a bullet |
double |
velocity
The velocity this Virtual Bullet is travelling |
Constructor Summary | |
---|---|
VirtualBullet(java.lang.String gunName,
java.awt.geom.Point2D.Double location,
double heading,
double velocity,
boolean real)
Class constructor specifying the Name of the firing Gun, the VirtualBullets initial location, the VirtuaBullets heading and velocity and whether it was fire by the robot |
Method Summary | |
---|---|
void |
update()
Advances the location of this VirtualBullet one tick in the furture |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String gunName
public java.awt.geom.Point2D.Double location
public double heading
public double velocity
public boolean real
Constructor Detail |
---|
public VirtualBullet(java.lang.String gunName, java.awt.geom.Point2D.Double location, double heading, double velocity, boolean real)
Method Detail |
---|
public void update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |