All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.human.HumanStrategy
java.lang.Object
|
+----java.lang.Thread
|
+----pinball.player.Strategy
|
+----pinball.player.human.HumanStrategy
- public class HumanStrategy
- extends Strategy
Human player plays pinball.
-
commands
- The command from the human to flip the flippers.
-
frame
- Frame number.
-
frameRate
- Frame frame for requesting images.
-
lastLeft
- The previous flip status of the flippers.
-
lastRight
- The previous flip status of the flippers.
-
window
- The window to draw to.
-
HumanStrategy()
- For extended classes.
-
HumanStrategy(Buffer, TextArea, Camera)
-
The strategy thread for the player.
-
decision()
- Have the human presss the keys to raise of lower the flippers.
-
flippersReset()
-
Don't let the flippers reset on their own.
-
getImage()
- Return the image from the stub.
window
protected HumanWindow window
- The window to draw to.
commands
protected FlipperCommands commands
- The command from the human to flip the flippers.
lastLeft
protected boolean lastLeft
- The previous flip status of the flippers.
lastRight
protected boolean lastRight
- The previous flip status of the flippers.
frameRate
protected int frameRate
- Frame frame for requesting images.
frame
protected int frame
- Frame number.
HumanStrategy
public HumanStrategy(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.
HumanStrategy
public HumanStrategy()
- For extended classes.
flippersReset
public void flippersReset()
- Don't let the flippers reset on their own. The human player will reset them.
- Overrides:
- flippersReset in class Strategy
getImage
public Image getImage()
- Return the image from the stub.
decision
public void decision()
- Have the human presss the keys to raise of lower the flippers.
- Overrides:
- decision in class Strategy
All Packages Class Hierarchy This Package Previous Next Index