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.
-
bufferSize
- The size of the buffers in the system.
-
server
- Sends data over the network.
-
NetworkPlayerStrategy()
-
-
NetworkPlayerStrategy(Buffer, TextArea, Camera)
-
The strategy thread for the player.
-
bufferAvailable()
- A buffer is available for sending over the network.
-
custom()
- Startup the server.
server
protected MyServer server
- Sends data over the network.
bufferSize
protected int bufferSize
- The size of the buffers in the system.
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
NetworkPlayerStrategy
public NetworkPlayerStrategy()
custom
public void custom()
- Startup the server.
- Overrides:
- custom in class Strategy
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