Package wolf.city.buildings.style

Examples of wolf.city.buildings.style.Pattern


    this.p1 = p1;
    floor = f;
   
    wall = new Wall(floor, (float)this.p0.distance(this.p1));
    //wall.split(5, SplitMethod.CONTRACT);
    Pattern p = new Pattern(PatternType.FIXED, (float)(Math.random()*.05f), new Pattern[]{new Pattern(PatternType.RELATIVE, .25f), new Pattern(PatternType.RELATIVE, .75f)});
   
    wall.split(p);
  }
View Full Code Here


  public WallSection(Wall wall, float length, Pattern pat) {
    this(wall, length);
    float[] lengths = pat.getChildPattern(length, OverflowBehavior.SHRINK);
    for(int i=0; i<pat.children.size(); i++){
      Pattern child = pat.children.get(i);
      if(lengths[i] != 0){
        WallSection ws = new WallSection(this, lengths[i], child);
        children.add(ws);
      }
    }
View Full Code Here

      WallSection ws = new WallSection(this, this.length);
      children.add(ws);
    }
    float[] lengths = pat.getChildPattern(length, OverflowBehavior.SHRINK);
    for(int i=0; i<pat.children.size(); i++){
      Pattern child = pat.children.get(i);
      if(lengths[i] != 0){
        for(int j=0; j<children.size(); j++){
          WallSection ws = new WallSection(this, lengths[i], child);
          children.get(j).children.add(ws);
        }
View Full Code Here

TOP

Related Classes of wolf.city.buildings.style.Pattern

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.