All Packages Class Hierarchy This Package Previous Next Index
Class alt.tictac.TicTacToeClient
java.lang.Object
|
+----game.ClientGame
|
+----alt.tictac.TicTacToeClient
- public class TicTacToeClient
- extends ClientGame
- implements TicTacToeConstants
Client part of the TicTacToe for Jags
-
black
-
-
crossImage
- The image for black.
-
gamePanel
- The game panel
-
gamePanel2
-
-
notImage
- The image for white.
-
status
-
-
white
-
-
TicTacToeClient()
- Creates a new TicTacToeClient
-
createPlayer(int, Object)
- Creates a new particular
Player
for this game.
-
frameReceived(Object, LinkFrame)
-
-
getGameLink()
-
-
make(GameLinkFilter, int)
-
-
status()
- Figure what the status of the game is.
-
yourMove(int)
- User move.
gamePanel2
JLabel gamePanel2
gamePanel
Container gamePanel
- The game panel
white
int white
black
int black
notImage
Image notImage
- The image for white.
crossImage
Image crossImage
- The image for black.
status
int status
TicTacToeClient
public TicTacToeClient()
- Creates a new TicTacToeClient
make
public void make(GameLinkFilter link,
int myPlayerId)
- Overrides:
- make in class ClientGame
createPlayer
public Player createPlayer(int id,
Object frameData)
- Creates a new particular
Player
for this game. This method
should be overriden by children so the created player is of the right
type.
- Parameters:
- name - the name of the new player to create
- id - the id of the player, which should have been sent by the server.
- Returns:
- the newly created player of the right type to be used in this
game.
- Overrides:
- createPlayer in class ClientGame
yourMove
boolean yourMove(int m)
- User move.
- Returns:
- true if legal
frameReceived
public void frameReceived(Object link,
LinkFrame frame)
- Overrides:
- frameReceived in class ClientGame
status
int status()
- Figure what the status of the game is.
getGameLink
public GameLinkFilter getGameLink()
All Packages Class Hierarchy This Package Previous Next Index