Class Json

  • All Implemented Interfaces:
    Constants

    public class Json
    extends java.lang.Object
    implements Constants
    This class handles reading and writing of JSON objects
    • Constructor Detail

      • Json

        public Json()
        Initialize the JSON object
    • Method Detail

      • exportScene

        public void exportScene​(java.util.concurrent.CopyOnWriteArrayList<java.util.concurrent.CopyOnWriteArrayList<Cell>> cells)
        Export the game cells to a JSON ready object then write it to a file
        Parameters:
        cells - The cells of the scene to export