Package org.jamesii.model.carules.grid.object

Examples of org.jamesii.model.carules.grid.object.Grid2D


      stream = new FileInputStream(fileName);
      if (stream.skip(skipChars) != skipChars) {
        return null;
      }

      ICARulesGrid grid = new Grid2D(new int[] { width, height }, 0);

      for (int y = 0; y < height; y++) {
        for (int x = 0; x < width; x++) {
          int s = stream.read();
          grid.setState(s, new int[] { x, y });
        }
        stream.read();
      }

      return grid;
View Full Code Here

TOP

Related Classes of org.jamesii.model.carules.grid.object.Grid2D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.