Class UserSelectionUpdate

All Implemented Interfaces:
Serializable

public class UserSelectionUpdate extends UserActionUpdate
A message of type UserActionUpdate sent by the server in order to notify the client of the available TowerColor and Wizard literals in the game. The communication item carries, inside its structure, a mapping between usernames and selected literals.
See Also:
  • Constructor Details

  • Method Details

    • getAvailableTowerColors

      public List<String> getAvailableTowerColors()
      A getter for the available TowerColor literals in the game.
      Returns:
      the available literals
    • getAvailableWizards

      public List<String> getAvailableWizards()
      A getter for the available Wizard literals in the game.
      Returns:
      the available literals
    • getTowerColors

      public Map<String,String> getTowerColors()
      A getter for the mapping between usernames and selected TowerColor literals.
      Returns:
      the internal representation of the mapping
    • getWizards

      public Map<String,String> getWizards()
      A getter for the mapping between usernames and selected Wizard literals.
      Returns:
      the internal representation of the mapping