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).
-
brain
-
-
timeTilFireRocket
-
-
timeTilShoot
-
-
BrainInterface(RobotBrain)
-
-
asynchronousNextMove(Feedback)
-
-
getBrain()
-
-
nextMove(Feedback)
-
-
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
brain
protected RobotBrain brain
timeTilShoot
protected int timeTilShoot
timeTilFireRocket
protected int timeTilFireRocket
BrainInterface
public BrainInterface(RobotBrain newBrain)
getBrain
public RobotBrain getBrain()
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
asynchronousNextMove
protected Instructions asynchronousNextMove(Feedback senses)
nextMove
public Instructions nextMove(Feedback senses)
All Packages Class Hierarchy This Package Previous Next Index