|
||||||||||
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.Shoto
public class Shoto
Electrum a Guess Factor targeting gun
Constructor Summary | |
---|---|
Shoto(robocode.AdvancedRobot robot)
Class Constructor specifying the robot this gun is virtually mounted on |
Method Summary | |
---|---|
double |
getBulletPower()
Returns the power of the bullet this gun wants to fire caculated in onScannedRobot |
double |
getFireAngle()
Returns the angle to fire this gun wants to fire caculated in onScannedRobot |
void |
onBulletHit(robocode.BulletHitEvent e)
onBulletHit - called by robocode when one of our bullets hit the enemy |
void |
onBulletHitBullet(robocode.BulletHitBulletEvent e)
onBulletHitBullet - called by robocode when one of our bullets hits an enemy bullet |
void |
onPaint(java.awt.Graphics2D g)
Event method called by Robocode when this robot is allowed to draw debugging graphics to the screen |
void |
onScannedRobot(robocode.ScannedRobotEvent e)
Event method called by Robocode when this robot's scanner passes over another robot |
Methods inherited from class rc.yoda.utils.Gun |
---|
onBulletMissed, onDeath, onWin |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Shoto(robocode.AdvancedRobot robot)
Method Detail |
---|
public void onScannedRobot(robocode.ScannedRobotEvent e)
onScannedRobot
in class Gun
ScannedRobotEvent
- information about the scanned robotpublic void onBulletHitBullet(robocode.BulletHitBulletEvent e)
Gun
onBulletHitBullet
in class Gun
public void onBulletHit(robocode.BulletHitEvent e)
Gun
onBulletHit
in class Gun
public void onPaint(java.awt.Graphics2D g)
onPaint
in class Gun
Graphics2D
- graphics that provides drawing method for paintingpublic 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 |