Class DumBot

java.lang.Object
  extended by jrobots.simulation.simulationObjects.Pilot
      extended by jrobots.simulation.simulationObjects.JRobot2010
          extended by DumBot
All Implemented Interfaces:
java.io.Serializable

public class DumBot
extends JRobot2010

The time calls for a DumBot if ya need a moving target...

It is unpredictable - some call it RandonatorMk0...

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jrobots.simulation.simulationObjects.Pilot
Pilot.DropperCommand, Pilot.LauncherAmmunition
 
Field Summary
 
Fields inherited from class jrobots.simulation.simulationObjects.Pilot
DOWN, LEFT, memoryConsumption, RIGHT, UP
 
Constructor Summary
DumBot()
           
 
Method Summary
protected  void actions()
          Everytime the simulation has progressed, each Pilot may plan the next actions.
protected  void init()
          Diese Methode wird einmalig aufgerufen, nachdem der Bot in die Arena gesetzt wird und bevor der Kampf startet.
 
Methods inherited from class jrobots.simulation.simulationObjects.JRobot2010
addDebugArrow, addDebugCrosshair, addDebugLine, addDebugLine, getBulletReloadTime, getBulletSpeed, getHealth, getLastScan, getMaxArenaDiameter, getMaxBackwardVelocity, getMaxForwardVelocity, getMaxScanAperture, getMineReloadTime, getMissileReloadTime, getMissileSpeedMax, getOrientation, getPosition, getProjectileReloadTime, getProjectileSpeed, getScanInterval, getTankTrapReloadTime, getTimeOfDropperReloaded, getTimeOfLauncherReloaded, getVelocity, isScanFromNow, setAutopilot, setBodyColor, setDebugLines, setDebugText, setDropMineCommand, setDropTankTrapCommand, setLaunchBulletCommand, setLaunchMissileCommand, setLaunchProjectileCommand, setMissileTarget, setNameColor, setScanAperture, setScanDirection, setTurretColor
 
Methods inherited from class jrobots.simulation.simulationObjects.Pilot
getBodyColor, getEnergy, getNameColor, getSafeShootDistance, getTime, getTurretColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumBot

public DumBot()
Method Detail

actions

protected void actions()
Description copied from class: Pilot
Everytime the simulation has progressed, each Pilot may plan the next actions. This is done through execution of this method.

Knowledge a Pilot has of the momentary simulation state is limited to what its Panzer's sensors may display. Access to the Panzer's sensor states is best done via the following methods:

A Pilot is able to steer its Panzer. The Panzer will follow those decisions until the Pilot canges its commands. Decisions are made by calling the following routines:

You may add fields as you like to keep some state through the coarse of the simulation run. But remember not to waste memory, as the framework checks the size of your Pilot's state and may refuse to permit it to the arena.
You can always use static fields, but that makes the timeline slider obsolete for debugging.

Also keep track of the computing time you spend, because if you exeed a certain treshold, the framework may exert punishment upon your Pilot. If you try to not waste time, there shouldn't be a problem, however.
If your Pilot causes an exception, there will also be some detriment, but a new instance of your Pilot will be established, so you may be able to carry on.

Specified by:
actions in class Pilot

init

protected void init()
Description copied from class: Pilot
Diese Methode wird einmalig aufgerufen, nachdem der Bot in die Arena gesetzt wird und bevor der Kampf startet.

Overrides:
init in class Pilot