All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.network.NetworkPlayerStrategy

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.Strategy
                   |
                   +----pinball.player.network.NetworkPlayerStrategy

public class NetworkPlayerStrategy
extends Strategy
The network player's strategy. This sends the location of the ball, and other data over to the client. This starts up the server.


Variable Index

 o bufferSize
The size of the buffers in the system.
 o server
Sends data over the network.

Constructor Index

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

Method Index

 o bufferAvailable()
A buffer is available for sending over the network.
 o custom()
Startup the server.

Variables

 o server
 protected MyServer server
Sends data over the network.

 o bufferSize
 protected int bufferSize
The size of the buffers in the system.

Constructors

 o NetworkPlayerStrategy
 public NetworkPlayerStrategy(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
 o NetworkPlayerStrategy
 public NetworkPlayerStrategy()

Methods

 o custom
 public void custom()
Startup the server.

Overrides:
custom in class Strategy
 o bufferAvailable
 public void bufferAvailable()
A buffer is available for sending over the network.

Overrides:
bufferAvailable in class Strategy

All Packages  Class Hierarchy  This Package  Previous  Next  Index