Package net.alteiar.beans.map.size

Examples of net.alteiar.beans.map.size.MapElementSizeSquare


      break;
    case METER:
      element = new MapElementSizeMeter(size);
      break;
    case CASES:
      element = new MapElementSizeSquare(size);
      break;
    }
    return element;
  }
View Full Code Here


        .getScale()), rectangle.getWidth().getPixels(battle.getScale()));
    assertEquals("The height should be equals", height.getPixels(battle
        .getScale()), rectangle.getHeight()
        .getPixels(battle.getScale()));

    MapElementSize newWidth = new MapElementSizeSquare(2.0);
    MapElementSize newHeight = new MapElementSizeSquare(3.0);
    rectangle.setWidth(newWidth);
    rectangle.setHeight(newHeight);
    sleep();
    assertEquals("The width should be equals", newWidth.getPixels(battle
        .getScale()), rectangle.getWidth().getPixels(battle.getScale()));
    assertEquals("The height should be equals", newHeight.getPixels(battle
        .getScale()), rectangle.getHeight()
        .getPixels(battle.getScale()));

    BufferedImage realImg = new BufferedImage(200, 200,
        BufferedImage.TYPE_INT_ARGB);
View Full Code Here

  public PathfinderMonsterElement(Point point, UniqueID characterId) {
    super(point);

    this.monsterId = characterId;
    width = new MapElementSizeSquare(1);
    height = new MapElementSizeSquare(1);
    damageBar = new BarElement(Color.RED, Color.GREEN);
  }
View Full Code Here

                PathfinderCharacterElement.this, getMap());
          }
        });

    this.charactedId = characterId;
    width = new MapElementSizeSquare(1);
    height = new MapElementSizeSquare(1);

    damageBar = new BarElement(Color.RED, Color.GREEN);
  }
View Full Code Here

                ShadowrunCharacterElement.this, getMap());
          }
        });

    this.charactedId = characterId;
    width = new MapElementSizeSquare(1);
    height = new MapElementSizeSquare(1);

    physicalBar = new BarElement(Color.RED, Color.GREEN);
    stunBar = new BarElement(Color.RED, Color.BLUE);
  }
View Full Code Here

TOP

Related Classes of net.alteiar.beans.map.size.MapElementSizeSquare

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.