public float maxHeight() { float max = -1f; for (SpriteImage s : spriteImages) { if (s.height() > max) max = s.height(); } return max; }
/** Return the height of the current sprite. */ public float height() { if (current != null) { return current.height(); } else { return 1; } }
/** Update the Sprite layer. */ private void updateLayer() { if (current != null) { layer.setImage( current .image() .subImage( current.x(), current.y(), current.width(), current.height())); } }