Package starlight.taliis.core.files

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


      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

        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

  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

     
      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

    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

    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

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

    // 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

Related Classes of starlight.taliis.core.files.adt

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.