public AffineTransform getAffineTransform(Position pos, Rotation rotation) {
   AffineTransform r = rotation.getAffineTransform(getSquareSize());
   AffineTransform t = AffineTransform.getTranslateInstance(getOffsetX(pos), getOffsetY(pos));
   t.concatenate(r);
   return t;
 }
Ejemplo n.º 2
0
	public Rotation extractTileRotation(Element el) {
		return Rotation.valueOf(el.getAttribute("rotation"));
	}