|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrc.yoda.utils.Gun
rc.yoda.plugin.guns.Random
public class Random
Random a gun that fires at a random angle between -46.6 and 46.6
Constructor Summary | |
---|---|
Random(robocode.AdvancedRobot robot)
Class Constructor specifying the robot this gun is virtually mounted on |
Method Summary | |
---|---|
double |
getBulletPower()
Generates a random bullet power in keeping with the name of this gun |
double |
getFireAngle()
Generates a random number from -46.6 to 46.6 |
Methods inherited from class rc.yoda.utils.Gun |
---|
onBulletHit, onBulletHitBullet, onBulletMissed, onDeath, onPaint, onScannedRobot, onWin |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Random(robocode.AdvancedRobot robot)
Method Detail |
---|
public double getBulletPower()
getBulletPower
in class Gun
public double getFireAngle()
getFireAngle
in class Gun
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |