All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ch.jp.robwar.BrainInterface

java.lang.Object
   |
   +----ch.jp.robwar.BrainInterface

public class BrainInterface
extends Object
This class interspedes between the Simulation and the RobotBrain, making sure that the Instructions given by the RobotBrain are valid (for example, the speed is within the limits of the robot).


Variable Index

 o brain
 o timeTilFireRocket
 o timeTilShoot

Constructor Index

 o BrainInterface(RobotBrain)

Method Index

 o asynchronousNextMove(Feedback)
 o getBrain()
 o nextMove(Feedback)
 o timeTick()
This goes to illustrate that OO is not perfect (and/or -more likely- that I am not perfect ;) This method had to be added to ensure good behavior to both BrainInterface and the new asynchronousBrainInterface

Variables

 o brain
 protected RobotBrain brain
 o timeTilShoot
 protected int timeTilShoot
 o timeTilFireRocket
 protected int timeTilFireRocket

Constructors

 o BrainInterface
 public BrainInterface(RobotBrain newBrain)

Methods

 o getBrain
 public RobotBrain getBrain()
 o timeTick
 protected void timeTick()
This goes to illustrate that OO is not perfect (and/or -more likely- that I am not perfect ;) This method had to be added to ensure good behavior to both BrainInterface and the new asynchronousBrainInterface

 o asynchronousNextMove
 protected Instructions asynchronousNextMove(Feedback senses)
 o nextMove
 public Instructions nextMove(Feedback senses)

All Packages  Class Hierarchy  This Package  Previous  Next  Index