Class OnsetBot2009

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

public class OnsetBot2009
extends JRobot2009

Sozusagen ein Starter-Toolkit.

Er enthält schon einen rundum-Scanner und kann auch schon fahren.

...Was? Er schießt nicht?

Vielleicht sollte man das mal ändern. Und nicht vergessen: Gebt ihm auch einen schönen Namen.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jrobots.simulation.simulationObjects.Pilot
jrobots.simulation.simulationObjects.Pilot.DropperCommand, jrobots.simulation.simulationObjects.Pilot.LauncherAmmunition
 
Field Summary
 
Fields inherited from class jrobots.simulation.simulationObjects.Pilot
DOWN, LEFT, memoryConsumption, RIGHT, UP
 
Constructor Summary
OnsetBot2009()
           
 
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.JRobot2009
addDebugArrow, addDebugCrosshair, addDebugLine, addDebugLine, 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, setLaunchMissileCommand, setLaunchProjectileCommand, setMissileTarget, setNameColor, setScanAperture, setScanDirection, setTurretColor
 
Methods inherited from class jrobots.simulation.simulationObjects.Pilot
clone, getBodyColor, getNameColor, getSafeShootDistance, getTime, getTurretColor
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnsetBot2009

public OnsetBot2009()
Method Detail

actions

protected void actions()
Description copied from class: jrobots.simulation.simulationObjects.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.

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 jrobots.simulation.simulationObjects.Pilot

init

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

Overrides:
init in class jrobots.simulation.simulationObjects.Pilot