Serialized Form
-
Package be.belegkarnil.game.board.tak
-
Class be.belegkarnil.game.board.tak.Player
class Player extends Object implements Externalizable-
Serialization Methods
-
readExternal
Used byExternalizable- Parameters:
in- seeExternalizable- Throws:
IOException- seeExternalizableClassNotFoundException- seeExternalizable
-
writeExternal
Used byExternalizable- Parameters:
out- seeExternalizable- Throws:
IOException- seeExternalizable
-
-
-
-
Package be.belegkarnil.game.board.tak.event
-
Class be.belegkarnil.game.board.tak.event.GameEvent
class GameEvent extends EventObject implements Serializable-
Serialized Fields
-
firstPlayer
Player firstPlayer
is the first {link @Player} when the game will start -
game
Game game
is the {link @Game} related to this event (i.e. theGamethat generates the event) -
secondPlayer
Player secondPlayer
is the second/other/opponent {link @Player} when the game will start -
winner
Player winner
is the {link @Player} who win theGameorGameEvent.NO_WINNER
-
-
-
Class be.belegkarnil.game.board.tak.event.MisdesignEvent
class MisdesignEvent extends EventObject implements Serializable-
Serialized Fields
-
board
Board board
is the board state when the event occurs -
exception
Exception exception
is the exception generated when the player tried to play (orMisdesignEvent.NO_EXCEPTION) -
piece
Piece piece
is the piece that the player tried to play (orMisdesignEvent.NO_PIECE) -
player
Player player
is the {link @Player} that generate the event -
position
Point position
is the position at which the player tried to play a piece (orMisdesignEvent.NO_POSITION)
-
-
-
Class be.belegkarnil.game.board.tak.event.RoundEvent
class RoundEvent extends EventObject implements Serializable-
Serialized Fields
-
game
Game game
is the {link @Game} related to this event (i.e. theGamethat generates the event) -
opponent
Player opponent
is the second/other/opponent {link @Player} when the round will start -
reason
Game.WinningReason reason
Defined only if winner is defined, this is the reason why the winner wins -
round
int round
is the identifier (counter) of the related round. -
startPlayer
Player startPlayer
is the first {link @Player} when the round will start -
winner
Player winner
is the {link @Player} who win the current round during theGameorGameEvent.NO_WINNER
-
-
-
Class be.belegkarnil.game.board.tak.event.TurnEvent
class TurnEvent extends EventObject implements Serializable-
Serialized Fields
-
action
Action action
is the chosen {#link Action}, what the currentPlayer's strategy plays -
current
Player current
is the first {link @Player} when the turn will start, the event is related to this player -
game
Game game
is the {link @Game} related to this event (i.e. theGamethat generates the event) -
opponent
Player opponent
is the second/other/opponent {link @Player} when turn round will start -
round
int round
is the identifier (counter) of the related round. -
turn
int turn
is the identifier (counter) of the related turn.
-
-
-
-
Package be.belegkarnil.game.board.tak.gui
-
Class be.belegkarnil.game.board.tak.gui.BoardPanel
class BoardPanel extends InnerPanel implements Serializable -
Class be.belegkarnil.game.board.tak.gui.CellDrawer
class CellDrawer extends JPanel implements Serializable -
Class be.belegkarnil.game.board.tak.gui.InnerPanel
class InnerPanel extends JPanel implements Serializable -
Class be.belegkarnil.game.board.tak.gui.LogPanel
class LogPanel extends InnerPanel implements Serializable-
Serialized Fields
-
content
JTextArea content
-
-
-
Class be.belegkarnil.game.board.tak.gui.MainFrame
class MainFrame extends JFrame implements Serializable -
Class be.belegkarnil.game.board.tak.gui.PiecesPanel
class PiecesPanel extends InnerPanel implements Serializable -
Class be.belegkarnil.game.board.tak.gui.ScorePanel
class ScorePanel extends InnerPanel implements Serializable -
Class be.belegkarnil.game.board.tak.gui.SettingsPanel
class SettingsPanel extends InnerPanel implements Serializable-
Serialized Fields
-
executor
ExecutorService executor
-
firstPlayerName
JComboBox firstPlayerName
-
penality
JTextField penality
-
play
JButton play
-
secondPlayerName
JComboBox secondPlayerName
-
sizes
JComboBox sizes
-
skip
JTextField skip
-
speed
JSlider speed
-
stop
JButton stop
-
thread
Future thread
-
threadLock
Object threadLock
-
timeout
JTextField timeout
-
winningRounds
JTextField winningRounds
-
-
-
Class be.belegkarnil.game.board.tak.gui.TimePanel
class TimePanel extends InnerPanel implements Serializable
-