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.


Constructor Index

 o MovitRobotStrategy(Buffer, TextArea, Camera)
The strategy thread for the player.

Method Index

 o custom()
Do nothing for custom.
 o decision()
No decision is called.
 o draw(Graphics, int, int)
Draw nothing.
 o option()
Find the robot stopped and reverse the direction.
 o test(byte[])
Test sound

Constructors

 o 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.

Methods

 o custom
 public void custom()
Do nothing for custom.

Overrides:
custom in class Strategy
 o option
 public void option()
Find the robot stopped and reverse the direction.

Overrides:
option in class Strategy
 o test
 public void test(byte sample[])
Test sound

 o decision
 public void decision()
No decision is called.

Overrides:
decision in class Strategy
 o 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