All Packages Class Hierarchy This Package Previous Next Index
Class pinball.player.pen.PenPlayer
java.lang.Object
|
+----pinball.player.standard.StdPlayer
|
+----pinball.player.pen.PenPlayer
- public class PenPlayer
- extends StdPlayer
The computer analyzes pen drawing and find the angle.
-
PenPlayer()
-
-
analyze(Buffer)
-
Get the analyze thread for the player.
-
localStrategy(Buffer, TextArea, Camera)
-
Get the strategy thread for the player.
-
main(String[])
-
Start up the program.
-
post(Buffer)
-
Get the post thread for the player.
PenPlayer
public PenPlayer()
main
public static void main(String args[])
- Start up the program. Takes command line arguments.
Takes the following command line arguments:
-s for server mode.
-c for client mode.
analyze
public Analyze analyze(Buffer buffer)
- Get the analyze thread for the player.
- Parameters:
- buffer - the first buffer in the series of buffers for the system.
- Returns:
- Analyze thread.
- Overrides:
- analyze in class StdPlayer
localStrategy
public Strategy localStrategy(Buffer buffer,
TextArea gameStats,
Camera camera)
- Get 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.
- Returns:
- strategy thread.
- Overrides:
- localStrategy in class StdPlayer
post
public Post post(Buffer buffer)
- Get the post thread for the player.
- Parameters:
- buffer - the first buffer in the series of buffers for the system.
- Returns:
- strategy thread.
- Overrides:
- post in class StdPlayer
All Packages Class Hierarchy This Package Previous Next Index