Module AM37

Interface PlayerLostListener

All Known Implementing Classes:
Lobby, ServerController

public interface PlayerLostListener
Listens for a player loss
  • Method Summary

    Modifier and Type Method Description
    void onPlayerLoss​(java.lang.String username, java.util.List<Cell> gameBoard)
    Notifies that a player lost
  • Method Details

    • onPlayerLoss

      void onPlayerLoss​(java.lang.String username, java.util.List<Cell> gameBoard)
      Notifies that a player lost
      Parameters:
      username - the loser's username
      gameBoard - the changed gameBoard without the loser's workers as a list of cells