Package net.sourceforge.dsnk.logic

Examples of net.sourceforge.dsnk.logic.RadarcolReader


  public Test4() throws Exception {
    this.setSize(800, 700);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    RadarcolReader reader = new RadarcolReader(new FileInputStream(
        "radarcol.mul"));
    this.colors = new ArrayList<Color>();
    Color[] allColors = reader.readAll();
    this.setTitle("Loaded " + allColors.length + " colors");
    for (int i = 0; i < 900; i++) {
      this.colors.add(allColors[i]);
    }
    reader.close();
  }
View Full Code Here


  public Test5() throws Exception {
    this.setSize(800, 700);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    RadarcolReader colReader = new RadarcolReader(new FileInputStream(
        "radarcol.mul"));
    this.colors = colReader.readAll();

    Map0Reader reader = new Map0Reader(new File("map0.mul"));
    // this.blocks = new ArrayList<MapBlock>();
    MapBlock[] allBlocks = reader.readAll();
    this.setTitle("Loaded " + allBlocks.length + " blocks");
View Full Code Here

TOP

Related Classes of net.sourceforge.dsnk.logic.RadarcolReader

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.