Class XMLGameDataIO

  • All Implemented Interfaces:

    public class XMLGameDataIO
    extends java.lang.Object
    implements GameDataIO
    An unfinished class for reading GameData from XML files.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GameData read​( in, GameData world)
      Unfinished class!
      GameData read​(FileType aFileType, Rules rules)
      Reads a new GameData object from aFileType.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLGameDataIO

        public XMLGameDataIO()
    • Method Detail

      • read

        public GameData read​(FileType aFileType,
                             Rules rules)
        Description copied from interface: GameDataIO
        Reads a new GameData object from aFileType.
        Specified by:
        read in interface GameDataIO
        aFileType - Provides the input file (reader).
        rules - This game is expected to be found.
        a new GameData object, representing the input.
        Throws: - If an I/O error occurs