All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.movitrobot.MovitRobotStrategy
java.lang.Object
|
+----java.lang.Thread
|
+----pinball.player.Strategy
|
+----pinball.player.movitrobot.MovitRobotStrategy
- public class MovitRobotStrategy
- extends Strategy
Robot controller player. Can be controlled by the arrow keys. However,
currently it moves back and forth (reversing itself when it hits the wall.
-
MovitRobotStrategy(Buffer, TextArea, Camera)
-
The strategy thread for the player.
-
custom()
- Do nothing for custom.
-
decision()
- No decision is called.
-
draw(Graphics, int, int)
- Draw nothing.
-
option()
- Find the robot stopped and reverse the direction.
-
test(byte[])
- Test sound
MovitRobotStrategy
public MovitRobotStrategy(Buffer buffer,
TextArea gameStats,
Camera camera)
- The strategy thread for the player.
- Parameters:
- buffer - the first buffer in the series of buffers for the system.
- gameStats - the area to write the game stats to.
- camera - the camera for the system.
custom
public void custom()
- Do nothing for custom.
- Overrides:
- custom in class Strategy
option
public void option()
- Find the robot stopped and reverse the direction.
- Overrides:
- option in class Strategy
test
public void test(byte sample[])
- Test sound
decision
public void decision()
- No decision is called.
- Overrides:
- decision in class Strategy
draw
public void draw(Graphics g,
int canvasWidth,
int canvasHeight)
- Draw nothing.
- Parameters:
- g - the graphics to draw to.
- cavasWidth - the width of the canvas.
- canvcasHeight - the hight of the canvas.
- Overrides:
- draw in class Strategy
All Packages Class Hierarchy This Package Previous Next Index