Examples of GumpIdx


Examples of net.sourceforge.dsnk.model.GumpIdx

    if (readBytes != 12) {
      throw new IOException(
          "Cannot read data block from file, not enough bytes available");
    }

    GumpIdx idx = new GumpIdx();
    idx.setOffset(getIntValue(data, 0));
    idx.setSize(getIntValue(data, 4));
    idx.setHeight(getShortValue(data, 8));
    idx.setWidth(getShortValue(data, 10));

    return idx;
  }
View Full Code Here

Examples of net.sourceforge.dsnk.model.GumpIdx

  private Gump gump = null;

  public Test2() throws Exception {
    this.setSize(800, 700);
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    GumpIdx idx = new GumpIdx();
    idx.setHeight((short)558);
    idx.setWidth((short)668);
    idx.setOffset(49463181);
    idx.setSize(796924);
//    idx.setHeight((short)135);
//    idx.setWidth((short)238);
//    idx.setOffset(7986183);
//    idx.setSize(5380);
     
View Full Code Here

Examples of net.sourceforge.dsnk.model.GumpIdx

   * @throws IOException if gump indices cannot be read
   */
  public GumpIdx[] readAll() throws IOException {
    ArrayList<GumpIdx> list = new ArrayList<GumpIdx>();

    GumpIdx idx = null;
    int i = 0;
    while ((idx = read()) != null) {
      idx.setIndex(i);
      i++;
      list.add(idx);
    }
    GumpIdx[] data = new GumpIdx[list.size()];
    list.toArray(data);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.