java.lang.Object
app.utils.pieceplayer.PieceSocket<M,P>
app.utils.pieceplayer.PieceSpectator<M,P>
- All Implemented Interfaces:
Spectator<M,
P>
PiecePlayer that only spectates the game i.e. connects readonly controls
-
Field Summary
Fields inherited from class app.utils.pieceplayer.PieceSocket
newPiece, pieces
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
connectPiece
(P piece) Connect a single piece and add it to the mapvoid
connectPieces
(Function<P, ? extends InteractivePiece<M, P>> newPiece) Connects all game pieces to supplied interactive piecesMethods inherited from class app.utils.pieceplayer.PieceSocket
update
-
Constructor Details
-
PieceSpectator
-
-
Method Details
-
connectPieces
Connects all game pieces to supplied interactive pieces- Overrides:
connectPieces
in classPieceSocket<M extends Move<P>,
P extends Piece> - Parameters:
newPiece
- constructor of InteractivePiece that takes P as argument
-
connectPiece
Description copied from class:PieceSocket
Connect a single piece and add it to the map- Specified by:
connectPiece
in classPieceSocket<M extends Move<P>,
P extends Piece>
-