Class RacerTerrainScanner

java.lang.Object
  extended by jrobots.simulation.simulationObjects.AbstractPilot
      extended by jrobots.simulation.simulationObjects.Pilot
          extended by jrobots.simulation.simulationObjects.JRobot2016A
              extended by RacerTerrainScanner
All Implemented Interfaces:
java.io.Serializable

public class RacerTerrainScanner
extends JRobot2016A

Finds the road reliably, yet does not know which way.

Since:
2016
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, RIGHT, UP
 
Fields inherited from class jrobots.simulation.simulationObjects.AbstractPilot
memoryConsumption
 
Constructor Summary
RacerTerrainScanner()
           
 
Method Summary
protected  void actions()
          At every simulation cycle every JRobot plans its next actions.
protected  void init()
          This method is called once if the bot is set into the arena and whenever the pilot needs to be reset.
 
Methods inherited from class jrobots.simulation.simulationObjects.JRobot2016A
addDebugArrow, addDebugCrosshair, addDebugLine, addDebugLine, down, getBodyFactory, getCurrentTerrain, getEnergyConsumptionEngine, getEnergyProductionPerSecond, getFramesPerSecond, getMaxBackwardVelocity, getMaxForwardVelocity, getOrientation, getPosition, getPosOfBestBot, getVelocity, left, right, setAutopilot, setBodyColor, setBoost, setDebugLines, setNameColor, up
 
Methods inherited from class jrobots.simulation.simulationObjects.Pilot
getBodyColor, getEnergy, getHealth, getName, getNameColor, getTime, getTurretColor
 
Methods inherited from class jrobots.simulation.simulationObjects.AbstractPilot
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RacerTerrainScanner

public RacerTerrainScanner()
Method Detail

actions

protected void actions()
Description copied from class: JRobot2016A
At every simulation cycle every JRobot plans its next actions. This happens by the framework calling this method.
Every participant is programming the decisions the JRobot will take in any possible situation. The following allotment of methods will help you in doing so.

Every JRobot has only limited knowledge of its surroundings. That limit is set by its sensors. Sensors in general are methods starting with get...:

The JRobot is called for actions, which are will have effect in the next simulation cycle. Issued actions in general are methods starting with set...:

In package jrobots.utils there are several helper classes to be used as necessary.

You may want to add fields to your JRobot class.

While it is possible to use static fields, these are not affected by the timeline slider in the GUI, which makes debugging less practical. Please don't use static fields while you can avoid it.

Runtime and memory are watched by the framework. If a reasonable use of the framework is confined by your programming, the responsible JRobot may be expelled from the competition.
Exceptions will be caught by the framework and the JRobot will be restarted. Please be aware of exceptions on the console, as the robot loses its memory at every restart.

Specified by:
actions in class JRobot2016A

init

protected void init()
Description copied from class: Pilot
This method is called once if the bot is set into the arena and whenever the pilot needs to be reset.

Please remember: If you overwrite this routine, call super.init().

Overrides:
init in class Pilot