All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.adjustable.AdjustablePlayer

java.lang.Object
   |
   +----pinball.player.standard.StdPlayer
           |
           +----pinball.player.adjustable.AdjustablePlayer

public class AdjustablePlayer
extends StdPlayer
Player which can have the flipper options adjusted. An additional command line argument is available for this player: -Pfile is used to store the locations of the polygons for the flippers.

While the system is running, press 1 or 2 to select the left or right player. Then click on the window to define the outline of the zone for that flipper. If you want to delete the outline, press d. If you want to save the outlines, press s. The file specified by the command line argument will automatically, load previous outlines, if they exist, and will save to that file name, if save is chosen.


Constructor Index

 o AdjustablePlayer()

Method Index

 o clientStrategy(Buffer, TextArea)
Get the strategy thread for the player.
 o localStrategy(Buffer, TextArea, Camera)
Get the strategy thread for the player.
 o main(String[])
Start up the program.
 o makeBuffers(int, Camera)
Make the information buffers.
 o post(Buffer)
Get the post thread for the player.
 o serverStrategy(Buffer, TextArea, Camera)
Get the strategy thread for the player.

Constructors

 o AdjustablePlayer
 public AdjustablePlayer()

Methods

 o 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. New command line argument -Ppolygonfile for the locations of the polygons for the flipper zones.

 o 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
 o clientStrategy
 public Strategy clientStrategy(Buffer buffer,
                                TextArea gameStats)
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.
Returns:
strategy thread.
Overrides:
clientStrategy in class StdPlayer
 o serverStrategy
 public Strategy serverStrategy(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:
serverStrategy in class StdPlayer
 o 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
 o makeBuffers
 public Buffer makeBuffers(int amount,
                           Camera Qcam)
Make the information buffers. Return the first of the list.

Parameters:
amount - The amount of buffers to create.
Qcam - The camera.
Returns:
the first of the list.
Overrides:
makeBuffers in class StdPlayer

All Packages  Class Hierarchy  This Package  Previous  Next  Index