Class UserInterface

java.lang.Object
it.polimi.ingsw.eriantys.client.UserInterface
All Implemented Interfaces:
ClientMessageHandler, Runnable
Direct Known Subclasses:
CommandLineInterface, GraphicalUserInterface

public abstract class UserInterface extends Object implements Runnable, ClientMessageHandler
This abstract class represents the generic user interface, which is associated with a single Client.
  • Field Details

    • client

      protected Client client
      Reference to the client object to which this user interface is associated.
    • characterCardInfo

      protected final com.google.gson.JsonObject characterCardInfo
      JSON structured object containing information about character cards that should be available to the player.
  • Constructor Details

    • UserInterface

      public UserInterface() throws IOException
      Reads the JSON file and saves the information about character cards.
      Throws:
      IOException - if the file can't be opened or read
  • Method Details