bots
Class SimpleBot

java.lang.Object
  extended byrobocode._Robot
      extended byrobocode.Robot
          extended byrobocode._AdvancedRobot
              extended byrobocode._AdvancedRadiansRobot
                  extended byrobocode.AdvancedRobot
                      extended byrobocode.TeamRobot
                          extended bybots.SimpleBot
All Implemented Interfaces:
java.lang.Runnable

public class SimpleBot
extends robocode.TeamRobot

Simple reactive bot

Author:
Francesco Baldisserri

Field Summary
 
Fields inherited from class robocode.Robot
out
 
Constructor Summary
SimpleBot()
           
 
Method Summary
 void onHitByBullet(robocode.HitByBulletEvent arg0)
           
 void onHitRobot(robocode.HitRobotEvent arg0)
           
 void onHitWall(robocode.HitWallEvent arg0)
           
 void onRobotDeath(robocode.RobotDeathEvent arg0)
           
 void onScannedRobot(robocode.ScannedRobotEvent arg0)
           
 void run()
           
 
Methods inherited from class robocode.TeamRobot
broadcastMessage, getTeammates, isTeammate, onMessageReceived, sendMessage
 
Methods inherited from class robocode.AdvancedRobot
addCustomEvent, clearAllEvents, execute, getAllEvents, getBulletHitBulletEvents, getBulletHitEvents, getBulletMissedEvents, getDataDirectory, getDataFile, getDataQuotaAvailable, getDistanceRemaining, getEventPriority, getGunTurnRemaining, getHitByBulletEvents, getHitRobotEvents, getHitWallEvents, getRadarTurnRemaining, getRobotDeathEvents, getScannedRobotEvents, getTurnRemaining, isAdjustGunForRobotTurn, isAdjustRadarForGunTurn, isAdjustRadarForRobotTurn, onCustomEvent, onDeath, onSkippedTurn, removeCustomEvent, setAhead, setBack, setEventPriority, setFire, setFireBullet, setInterruptible, setMaxTurnRate, setMaxVelocity, setResume, setStop, setStop, setTurnGunLeft, setTurnGunRight, setTurnLeft, setTurnRadarLeft, setTurnRadarRight, setTurnRight, waitFor
 
Methods inherited from class robocode._AdvancedRadiansRobot
getGunHeadingRadians, getGunTurnRemainingRadians, getHeadingRadians, getRadarHeadingRadians, getRadarTurnRemainingRadians, getTurnRemainingRadians, setTurnGunLeftRadians, setTurnGunRightRadians, setTurnLeftRadians, setTurnRadarLeftRadians, setTurnRadarRightRadians, setTurnRightRadians, turnGunLeftRadians, turnGunRightRadians, turnLeftRadians, turnRadarLeftRadians, turnRadarRightRadians, turnRightRadians
 
Methods inherited from class robocode._AdvancedRobot
endTurn, getGunHeadingDegrees, getHeadingDegrees, getMaxWaitCount, getRadarHeadingDegrees, getWaitCount, setTurnGunLeftDegrees, setTurnGunRightDegrees, setTurnLeftDegrees, setTurnRadarLeftDegrees, setTurnRadarRightDegrees, setTurnRightDegrees, turnGunLeftDegrees, turnGunRightDegrees, turnLeftDegrees, turnRadarLeftDegrees, turnRadarRightDegrees, turnRightDegrees
 
Methods inherited from class robocode.Robot
ahead, back, doNothing, finalize, fire, fireBullet, getBattleFieldHeight, getBattleFieldWidth, getEnergy, getGunCoolingRate, getGunHeading, getGunHeat, getHeading, getHeight, getName, getNumRounds, getOthers, getRadarHeading, getRoundNum, getTime, getVelocity, getWidth, getX, getY, onBulletHit, onBulletHitBullet, onBulletMissed, onWin, resume, scan, setAdjustGunForRobotTurn, setAdjustRadarForGunTurn, setAdjustRadarForRobotTurn, setColors, stop, stop, turnGunLeft, turnGunRight, turnLeft, turnRadarLeft, turnRadarRight, turnRight
 
Methods inherited from class robocode._Robot
getBattleNum, getGunCharge, getGunImageName, getLife, getNumBattles, getRadarImageName, getRobotImageName, setGunImageName, setPeer, setRadarImageName, setRobotImageName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBot

public SimpleBot()
Method Detail

run

public void run()

onScannedRobot

public void onScannedRobot(robocode.ScannedRobotEvent arg0)

onHitRobot

public void onHitRobot(robocode.HitRobotEvent arg0)

onHitWall

public void onHitWall(robocode.HitWallEvent arg0)

onHitByBullet

public void onHitByBullet(robocode.HitByBulletEvent arg0)

onRobotDeath

public void onRobotDeath(robocode.RobotDeathEvent arg0)