Serialized Form
-
Package be.belegkarnil.game.board.spectrangle
-
Class be.belegkarnil.game.board.spectrangle.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.spectrangle.event
-
Class be.belegkarnil.game.board.spectrangle.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.spectrangle.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 the position at which the player tried to play a piece (orMisdesignEvent.NO_POSITION)
-
-
-
Class be.belegkarnil.game.board.spectrangle.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 -
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.spectrangle.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.spectrangle.gui
-
Class be.belegkarnil.game.board.spectrangle.gui.BoardPanel
class BoardPanel extends SpectranglePanel implements Serializable-
Serialized Fields
-
area
TriangleCellDrawer area
-
board
Board board
-
cells
TriangleCellDrawer[][] cells
-
color
Color color
-
current
Piece current
-
hmi
Player hmi
-
lock
Object lock
-
rotation
int rotation
-
-
-
Class be.belegkarnil.game.board.spectrangle.gui.LogPanel
class LogPanel extends SpectranglePanel implements Serializable-
Serialized Fields
-
content
JTextArea content
-
-
-
Class be.belegkarnil.game.board.spectrangle.gui.PiecesPanel
class PiecesPanel extends SpectranglePanel implements Serializable-
Serialized Fields
-
content
JPanel content
-
pieces
List<be.belegkarnil.game.board.spectrangle.gui.PiecesPanel.PiecePanel> pieces
-
position
int position
-
scroll
JScrollPane scroll
-
-
-
Class be.belegkarnil.game.board.spectrangle.gui.ScorePanel
class ScorePanel extends SpectranglePanel implements Serializable -
Class be.belegkarnil.game.board.spectrangle.gui.SettingsPanel
class SettingsPanel extends SpectranglePanel implements Serializable-
Serialized Fields
-
board
Board board
-
firstPlayerName
JComboBox firstPlayerName
-
penality
JTextField penality
-
secondPlayerName
JComboBox secondPlayerName
-
skip
JTextField skip
-
speed
JSlider speed
-
timeout
JTextField timeout
-
winningRounds
JTextField winningRounds
-
-
-
Class be.belegkarnil.game.board.spectrangle.gui.SpectrangleFrame
class SpectrangleFrame extends JFrame implements Serializable -
Class be.belegkarnil.game.board.spectrangle.gui.SpectranglePanel
class SpectranglePanel extends JPanel implements Serializable -
Class be.belegkarnil.game.board.spectrangle.gui.TimePanel
class TimePanel extends SpectranglePanel implements Serializable
-