manager
Class Tictactoe3DGame
java.lang.Object
manager.Game
manager.Tictactoe3DGame
public class Tictactoe3DGame
- extends Game
This class extends the generic board game class Game
to support a tic tac toe game.
- Version:
- 0.5 beta - 03/15/2006
- Author:
- Luciano Antonio Digiampietri
- See Also:
Game
Fields inherited from class manager.Game |
BOARD, CONT_ID, DRAWN_GAME, GAME_ENDED, GAME_STARTED, GAME_TYPE, LAST_MESSAGE, MAX_PLAYERS, MIN_PLAYERS, PLAYERS, WAITING_PLAYERS, WINNER |
Methods inherited from class manager.Game |
canAdd, canMove, currentBoard, endTurn, gameDraw, getActualPlayer, getColumns, getCurrentGameId, getGameName, getGameType, getLines, getMaxPlayers, getMessage, getMinPlayers, getPlayers, getStatus, joinGame, move, rotate, waitingPlayers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tictactoe3DGame
public Tictactoe3DGame(java.lang.String name)
Tictactoe3DGame
public Tictactoe3DGame(java.lang.String name,
int player1)
startGame
public void startGame()
canAdd
public boolean canAdd(int x,
int y,
Piece P)
add
public boolean add(int x,
int y,
int Player)
- Overrides:
add
in class Game
initializeBoard
public void initializeBoard()
- Overrides:
initializeBoard
in class Game
gameEnded
public boolean gameEnded()
- Overrides:
gameEnded
in class Game
player1Won
public boolean player1Won()
player2Won
public boolean player2Won()
won
public boolean won(int Player)