Interface GameDataIO

    • Method Detail

      • read

        GameData read​(java.io.Reader in,
                      GameData world)
               throws java.io.IOException
        Fills the existing GameData object world from an input Reader of a game data file.
        Parameters:
        in - A Reader, initialized to an game data file.
        world - An existing GameData.
        Returns:
        The (modified) world
        Throws:
        java.io.IOException - If an I/O error occurs
      • read

        GameData read​(FileType aFileType,
                      Rules rules)
               throws java.io.IOException
        Reads a new GameData object from aFileType.
        Parameters:
        aFileType - Provides the input file (reader).
        rules - This game is expected to be found.
        Returns:
        a new GameData object, representing the input.
        Throws:
        java.io.IOException - If an I/O error occurs