Class java.rmi.examples.remoteControl.PlayerPack
All Packages Class Hierarchy This Package Previous Next Index
Class java.rmi.examples.remoteControl.PlayerPack
java.lang.Object
|
+----java.rmi.examples.remoteControl.PlayerPack
- public class PlayerPack
- extends Object
Used to communicate the things a new player needs to enter the game
-
channel
- The channel to use to send moves
-
firstTurnTime
- The time allowed for the first turn
-
game
- The game actually inserted into
-
playerNum
- The player's assigned number
-
PlayerPack(int, MoveChannel, Game, long)
-
-
toString()
- Returns a String that represents the value of this Object.
playerNum
public int playerNum
- The player's assigned number
channel
public MoveChannel channel
- The channel to use to send moves
game
public Game game
- The game actually inserted into
firstTurnTime
public long firstTurnTime
- The time allowed for the first turn
PlayerPack
public PlayerPack(int num,
MoveChannel chan,
Game g,
long firstTurnTime)
toString
public String toString()
- Returns a String that represents the value of this Object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index