rc.yoda.plugin
Interface Plugin

All Known Implementing Classes:
GunArray, MovementArray

public interface Plugin

Plugin is an interface that defines basic interactions between a robot and any implementing Plugin

Version:
v1.0
Author:
Robert Codd

Method Summary
 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
 

Method Detail

onRobotFire

void onRobotFire(double deltaEnergy)
Event method called by this robot when it detects that the enemy fired a bullet

Parameters:
double - deltaEnergy the power of the bullet fired

onScannedRobot

void onScannedRobot(robocode.ScannedRobotEvent e)
Event method called by Robocode when this robot's scanner passes over another robot

Parameters:
ScannedRobotEvent - information about the scanned robot

onHitByBullet

void onHitByBullet(robocode.HitByBulletEvent e)
Event method called by Robocode when this robot gets hit by a bullet

Parameters:
HitByBulletEvent - information about ther bullet that hit this robot

onBulletHit

void onBulletHit(robocode.BulletHitEvent e)
Event method called by Robocode when a bullet this robot fired hits another robot

Parameters:
BulletHitEvent - information about the robot that got hit by the bullet

onBulletMissed

void onBulletMissed(robocode.BulletMissedEvent e)
Event method called by Robocode when a bullet this robot fired hit a wall

Parameters:
BulletMissedEvent - information about the bullet

onBulletHitBullet

void onBulletHitBullet(robocode.BulletHitBulletEvent e)
Event method called by Robocode when a bullet this robot fired collides with a bullet fired by another robot

Parameters:
BulletHitBulletEvent - information about the bullets

onHitWall

void onHitWall(robocode.HitWallEvent e)
Event method called by Robocode when this robot hits a wall

Parameters:
HitWallEvent - information about the wall

onHitRobot

void onHitRobot(robocode.HitRobotEvent e)
Event method called by Robocode when this robot collides with another robot

Parameters:
HitRobotEvent - information about the collision and the other robot in the crash

onRobotDeath

void onRobotDeath(robocode.RobotDeathEvent e)
Event method called by Robocode when a robot dies

Parameters:
RobotDeathEvent - name of decaesed robot

onWin

void onWin(robocode.WinEvent e)
Event method called by Robocode when this robot wins a round

Parameters:
WinEvent -

onDeath

void onDeath(robocode.DeathEvent e)
Event method called by Robocode when this robot dies

Parameters:
DeathEvent -

onPaint

void onPaint(java.awt.Graphics2D g)
Event method called by Robocode when this robot is allowed to draw debugging graphics to the screen

Parameters:
Graphics2D - graphics that provides drawing method for painting