All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.random2.Random2Strategy
java.lang.Object
|
+----java.lang.Thread
|
+----pinball.player.Strategy
|
+----pinball.player.random2.Random2Strategy
- public class Random2Strategy
- extends Strategy
Player who randomly flips the flippers.
-
Random2Strategy()
- Required for extended class.
-
Random2Strategy(Buffer, TextArea, Camera)
-
The strategy thread for the player.
-
decision()
-
Should you flip or not.
Random2Strategy
public Random2Strategy(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.
Random2Strategy
public Random2Strategy()
- Required for extended class.
decision
public void decision()
- Should you flip or not.
1/3 flip left, 1/3 right & 1/3 both.
- Overrides:
- decision in class Strategy
All Packages Class Hierarchy This Package Previous Next Index