Module AM37

Interface SelectWorkerListener

All Known Implementing Classes:
ServerController

public interface SelectWorkerListener
Listens for a legal worker selection
  • Method Summary

    Modifier and Type Method Description
    void onSelectedWorker​(java.lang.String username, java.util.List<PossibleActions> possibleActions, Worker selectedWorker)
    Notifies that the worker choice was successful
  • Method Details

    • onSelectedWorker

      void onSelectedWorker​(java.lang.String username, java.util.List<PossibleActions> possibleActions, Worker selectedWorker)
      Notifies that the worker choice was successful
      Parameters:
      username - the player to notify's username
      possibleActions - a list of the actions performable with the chosen worker
      selectedWorker - the selected worker