Package starlight.taliis.helpers

Examples of starlight.taliis.helpers.adtCoordHelper


  main() {
    obj = new adt();
   
    // setup some helpers
    check = new adtChecker(obj);
    adtCoordHelper cordh = new adtCoordHelper(obj);
    adtObjHelper objh = new adtObjHelper(obj);
   
    // Add some Textures
    int texID = obj.mtex.addString("Tileset\\SilverPine\\SilverPineDirt.blp");
    obj.mtex.addString("Tileset\\Elwynn\\ElwynnFlowerBase.blp");
   
    // add a dd
    int ddID = obj.mmdx.addString("world\\Kalimdor\\Ashenvale\\ActiveDoodads\\MannarothSpear\\AshenvaleMannarothSpear.m2");
   
    // add a wmo
    int wmoID = obj.mwmo.addString("world\\wmo\\azeroth\\buildings\\guildhouses\\guildhouseb.wmo");
    obj.mwmo.addString("World\\wmo\\Dungeon\\LD_ShadowFang\\LD_ShadowFang.wmo");

    // set our coordinates
    cordh.calcCoordinates(49, 31, 60F, texID);
    cordh.loadHeightMap("./images/hmap.jpg", 0.5F);
   
    // place a DD
    objh.addDoodad(ddID, 96050, -9270F, 300F, 60.5F);
    objh.addDoodad(ddID, 96051, -9260F, 300F, 60.5F);
    objh.addDoodad(ddID, 96052, -9280F, 300F, 60.5F);
View Full Code Here


    }
   
    // do our test stuff 
    // ------------------------------------------------------------
    // set our coordinates 43-46_ 51-55
    adtCoordHelper cordh = new adtCoordHelper(obj);
    for(int i=0; i<5; i++) {
      for(int j=0; j<4; j++) {
        cordh.moveCoordinates((51+i), (43+j));
        obj.render();
       
        if(check.check()==0) {
          System.out.println("Kalimdor_" +(43+j) + "_" + (51+i)+".adt");
          filename = "./files/Kalimdor_" +(43+j) + "_" + (51+i)+".adt";
View Full Code Here

          
        default:
          return null;
      }
 
      adtCoordHelper chelp = new adtCoordHelper( (adt)tmp );
      chelp.calcCoordinates(n.y, n.x, 0, 0);
     
      // register by ourselfes
      fm.registerObject(
        tmp,
        new File(n.name + "_" + n.xStr + "_" + n.yStr + ".adt")
View Full Code Here

TOP

Related Classes of starlight.taliis.helpers.adtCoordHelper

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.