|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrc.yoda.plugin.GunArray
public class GunArray
GunArray is a class that loads and manages an array of virtual guns that trys to determine which gun is best suited for defeating the current oppenent
Constructor Summary | |
---|---|
GunArray(robocode.AdvancedRobot robot)
Class constructor specifying the AdvancedRobot it works for |
Method Summary | |
---|---|
void |
init()
Once a round management for the Gun Array |
void |
onBulletHit(robocode.BulletHitEvent e)
Event method called by Robocode when a bullet this robot fired hits another robot |
void |
onBulletHitBullet(robocode.BulletHitBulletEvent e)
Event method called by Robocode when a bullet this robot fired collides with a bullet fired by another robot |
void |
onBulletMissed(robocode.BulletMissedEvent e)
Event method called by Robocode when a bullet this robot fired hit a wall |
void |
onDeath(robocode.DeathEvent e)
Event method called by Robocode when this robot dies |
void |
onHitByBullet(robocode.HitByBulletEvent e)
Event method called by Robocode when this robot gets hit by a bullet |
void |
onHitRobot(robocode.HitRobotEvent e)
Event method called by Robocode when this robot collides with another robot |
void |
onHitWall(robocode.HitWallEvent e)
Event method called by Robocode when this robot hits a wall |
void |
onPaint(java.awt.Graphics2D g)
Event method called by Robocode when this robot is allowed to draw debugging graphics to the screen |
void |
onRobotDeath(robocode.RobotDeathEvent e)
Event method called by Robocode when a robot dies |
void |
onRobotFire(double deltaEnergy)
Event method called by this robot when it detects that the enemy fired a bullet |
void |
onScannedRobot(robocode.ScannedRobotEvent e)
Event method called by Robocode when this robot's scanner passes over another robot |
void |
onWin(robocode.WinEvent e)
Event method called by Robocode when this robot wins a round |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GunArray(robocode.AdvancedRobot robot)
Method Detail |
---|
public void init()
public void onRobotFire(double deltaEnergy)
onRobotFire
in interface Plugin
double
- deltaEnergy the power of the bullet firedpublic void onScannedRobot(robocode.ScannedRobotEvent e)
onScannedRobot
in interface Plugin
ScannedRobotEvent
- information about the scanned robotpublic void onHitByBullet(robocode.HitByBulletEvent e)
onHitByBullet
in interface Plugin
HitByBulletEvent
- information about ther bullet
that hit this robotpublic void onBulletHit(robocode.BulletHitEvent e)
onBulletHit
in interface Plugin
BulletHitEvent
- information about the robot
that got hit by the bulletpublic void onBulletMissed(robocode.BulletMissedEvent e)
onBulletMissed
in interface Plugin
BulletMissedEvent
- information about the bulletpublic void onBulletHitBullet(robocode.BulletHitBulletEvent e)
onBulletHitBullet
in interface Plugin
BulletHitBulletEvent
- information about the bulletspublic void onHitWall(robocode.HitWallEvent e)
onHitWall
in interface Plugin
HitWallEvent
- information about the wallpublic void onHitRobot(robocode.HitRobotEvent e)
onHitRobot
in interface Plugin
HitRobotEvent
- information about the collision and
the other robot in the crashpublic void onRobotDeath(robocode.RobotDeathEvent e)
onRobotDeath
in interface Plugin
RobotDeathEvent
- name of decaesed robotpublic void onWin(robocode.WinEvent e)
onWin
in interface Plugin
WinEvent
- public void onDeath(robocode.DeathEvent e)
onDeath
in interface Plugin
DeathEvent
- public void onPaint(java.awt.Graphics2D g)
onPaint
in interface Plugin
Graphics2D
- graphics that provides drawing method for painting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |