Examples of MCNK


Examples of starlight.taliis.core.chunks.adt.MCNK

   * - delete
   */
  private void initPopup(int x,int y) {
    openedFile of = fm.getActiveFile();
    adt obj=(adt)of.obj;
    MCNK f=obj.mcnk[x*16+y];
    int ID=0;
   
    ID=f.getAreaID();
    int tex=f.getNLayers();
    popup = new JPopupMenu();
   
    mTex=new JMenu("Textures");
    mHoles=new JMenu("Holes");
    mArea = new JMenu("AreaID");
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCNK

   
    // calculate fake ext values
    obj.modf.entrys[modfid].calcExtValues();

    // witch is our MCNK tile?
    MCNK field = getLocationObj(x, y);
   
    // dont forget to register it
    field.mcrf.appendEntry( modfid );
   
    // increase total numbers of objects there
    int count = field.getNObj();
    field.setNObj(count+1);
   
    return modfid;
  }
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCNK

        z
      );
   
   
    // witch is our MCNK tile?
    MCNK field = getLocationObj(x, y);
   
    // dont forget to register it
    field.mcrf.insertEntry( mddfid );
   
    // increase total numbers of objects there
    int count = field.getNDoodad();
    field.setNDoodad(count+1);

    return mddfid;
  }
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCNK

   
    // Doodads
    for(int c=0; c<obj.mddf.getLenght(); c++) {
      // witch is our MCNK tile?
      MDDF_Entry dd = obj.mddf.entrys[c];
      MCNK field = getLocationObj(
          MODF_Entry.translate(dd.getX()),
          MODF_Entry.translate(dd.getY())
        );
     
      if(field==null) {
        System.err.println("DD " + c + " is located too far from this map. Skipped.");
      }
      else {
        // dont forget to register it
        field.mcrf.appendEntry(c);
       
        // increase total numbers of objects there
        int count = field.getNDoodad();
        field.setNDoodad(count+1);
      }
    }
   
    // WMO
    for(int c=0; c<obj.modf.getLenght(); c++) {
      // witch is our MCNK tile?
      MODF_Entry ob = obj.modf.entrys[c];
      MCNK field = getLocationObj(
          MODF_Entry.translate(ob.getX()),
          MODF_Entry.translate(ob.getY())
        );
     
      if(field==null) {
        System.err.println("Object " + c + " is located too far from this map. Skipped.");
      }
      else {
        // dont forget to register it
        field.mcrf.appendEntry(c);
       
        // increase total numbers of objects there
        int count = field.getNObj();
        field.setNObj(count+1);
      }
    }
  }
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCNK

    // mh2o = new MH2O();

    mcnk = new MCNK[256];
    for (int c = 0; c < 16; c++)
      for (int i = 0; i < 16; i++)
        mcnk[(c * 16) + i] = new MCNK(i, c, version_flag);

    // naah i dont trust this atm ..
    /*
     * if(version_flag>=ADT_VERSION_EXPANSION_TBC) { mh2o = new MH2O(); }
     */
 
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCNK

    try {
      mcnk = new MCNK[256];
      for (int c = 0; c < 256; c++) {
        buff.position(fieldInfo.getOffs(c));
        mcnk[c] = new MCNK(buff, version_flag);
      }
    } catch (SubChunkNotFoundException e) {
      throw new InvalidClassException(e.getMessage());
    } catch (ChunkNotFoundException e) {
      // TODO: try to find it manually
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCNK



      mcnk = new MCNK[256];
      for (int c = 0; c < 256; c++) {
        mcnk[c] = new MCNK(buff, version_flag);
      }


    if (version_flag >= ADT_VERSION_EXPANSION_TBC)
        if (header.getoffsFlightBoundary() != 0) {
View Full Code Here

Examples of starlight.taliis.core.chunks.adt.MCNK

    long start = System.currentTimeMillis();
   
    // load / create fields
    for(int x=0; x<16; x++)
        for(int y=0; y<16; y++) {
          MCNK t = obj.mcnk[16*x+y];
          FieldBranch bla = new FieldBranch(
              t,
              t.getIndexX(),
              t.getIndexY(),
              0.1);
          //if(x>8 && y<8) bla.setLayerVisibility(0, false);
          addChild(bla.getBranchGroup());
        }
    long end = System.currentTimeMillis();
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.