- All Known Implementing Classes:
InteractiveGame
Interface of socket that players and spectators can connect to in order to play/spectate the game
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectPlayer
(int playerId, Player<M, P> player) Connects the player and handles the controlsvoid
connectSpectator
(Spectator<M, P> spectator) Connects spectator that listens to the events
-
Method Details
-
connectPlayer
Connects the player and handles the controls- Parameters:
playerId
- id of connected player (in game)player
- player to be connected
-
connectSpectator
Connects spectator that listens to the events- Parameters:
spectator
- spectator to be connected
-