Examples of ADT


Examples of starlight.taliis.core.files.adt

    DefaultMutableTreeNode top;
    DefaultMutableTreeNode category = null;
      DefaultMutableTreeNode book = null;
     
      if(obj.getClass()==adt.class) {
        adt o = (adt)obj;
        top = new DefaultMutableTreeNode(new MenueEntry(FileName, 0, this, pack));
       
    // files
        category = new DefaultMutableTreeNode(new MenueEntry("Files", 1, this, folder));
        top.add(category);
View Full Code Here

Examples of starlight.taliis.core.files.adt

   
    // check adt file
    if(e.getSource()==miCheck) {
      openedFile os = fm.getActiveFile();
      if(os.obj instanceof adt) {
        adt f = (adt)os.obj;
       
        adtChecker check = new adtChecker(f);
        check.check();
      }
    }
View Full Code Here

Examples of starlight.taliis.core.files.adt

      imp();
  }
 
  private void extract() {
    System.out.println("Open " + inF);
    adt obj = new adt( fileLoader.openBuffer(inF) );
   
    // Setup output picture
    BufferedImage img = new BufferedImage(16*64, 16*64, BufferedImage.TYPE_BYTE_BINARY);
   
    for(int x=0; x<16; x++) {
View Full Code Here

Examples of starlight.taliis.core.files.adt

 
  /**
   * creates a complete new map to test on it.
   */
  main() {
    obj = new adt();
   
    // setup some helpers
    check = new adtChecker(obj);
    adtCoordHelper cordh = new adtCoordHelper(obj);
    adtObjHelper objh = new adtObjHelper(obj);
View Full Code Here

Examples of starlight.taliis.core.files.adt

      bb.position(0);
      tmp.put(bb);
      tmp.position(0);
     
    // init adt file
      obj = new adt(tmp);
      check = new adtChecker(obj);
     
    // clean up
      fc.close();
      fis.close();
View Full Code Here

Examples of starlight.taliis.core.files.adt

        catch(Exception e){
         
        }
        if(of!=null){
          if(of.obj instanceof adt) {
            adt injObj = (adt) of.obj;
            short heightmap[]=new short[16*16];
            for(int c=0; c<256; c++) {
              float temp = 0;
              for(int i=0;i<145;i++){
                temp+=injObj.mcnk[c].mcvt.getVal(i)+injObj.mcnk[c].getPosZ();
View Full Code Here

Examples of starlight.taliis.core.files.adt

  public void setFileManangerRef(fileMananger ref) {
    fm = ref;
  }
 
  public wowfile load(File f) throws ChunkNotFoundException {
    adt tmp = null;


      try {
        tmp=new adt( fileLoader.openBuffer(f.getAbsolutePath()));
      } catch (InvalidClassException e) {

      }

      return tmp;
View Full Code Here

Examples of starlight.taliis.core.files.adt

     
      switch(n.version) {
        case adt.ADT_VERSION_NORMAL:
        case adt.ADT_VERSION_EXPANSION_TBC:
        case adt.ADT_VERSION_EXPANSION_WOTLK:
          tmp = new adt(n.version);
           break;
          
        default:
          return null;
      }
View Full Code Here

Examples of starlight.taliis.core.files.adt

    if (of == null || !(of.obj instanceof adt))
      return;

    // get data
    adt obj = (adt) of.obj;
    BufferedImage img = new BufferedImage(1024, 1024, BufferedImage.TYPE_INT_RGB);
        String filename = of.f.getAbsolutePath();
        File f = new File(filename +"_Shadow_"+ ".png");
        try {
        img=ImageIO.read(f);
View Full Code Here

Examples of starlight.taliis.core.files.adt

    openedFile of = fm.getActiveFile();
   
    if(of==null || !(of.obj instanceof adt)) return;
   
    // get data
    adt obj = (adt)of.obj;
   
    // create buffered image
    BufferedImage img = new BufferedImage(16 * 64, 16 * 64, BufferedImage.TYPE_BYTE_BINARY);
    for (int x = 0; x < 16; x++)
      for (int y = 0; y < 16; y++) {
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.