Package net.sf.fysix.leveleditor.tool.level.subtool.draw

Examples of net.sf.fysix.leveleditor.tool.level.subtool.draw.ShapeMapObject.addVertex()


    List<ShapeData> shapes = sh.getShapes();
    for (ShapeData sd : Collections.unmodifiableCollection(shapes)){
      ShapeMapObject smo = new ShapeMapObject(new DrawSettings()); // TODO: Attach draw settings to GENEREAL (DrawTool)
      for(int i=0;i<sd.x.length;i++){
        WorldPos vertex = new WorldPos(sd.x[i], sd.y[i]);
        smo.addVertex(vertex);
        smo.setShapeId(sd.name);
      }
      refEditor.addMapObject(smo);
   
  }
View Full Code Here


    List<ShapeData> shapes = sh.getShapes();
    for (ShapeData sd : Collections.unmodifiableCollection(shapes)){
      ShapeMapObject smo = new ShapeMapObject(new DrawSettings()); // TODO: Attach draw settings to GENEREAL (DrawTool)
      for(int i=0;i<sd.x.length;i++){
        WorldPos vertex = new WorldPos(sd.x[i], sd.y[i]);
        smo.addVertex(vertex);
        smo.setShapeId(sd.name);
      }
      refEditor.addMapObject(smo);
   
  }
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.