Package view

Class BufferedSpriteSheet

java.lang.Object
view.BufferedSpriteSheet

public class BufferedSpriteSheet extends Object
Container for the sprite sheet. The number of sequence frames in this sprite sheet is not auto-magically computed. Client code should ensure consistency.
Author:
Krish Pillai
  • Constructor Details

    • BufferedSpriteSheet

      public BufferedSpriteSheet(BufferedImage image, int count)
      Container for the sprite sheet buffered image.
      Parameters:
      image - the buffered image
      count - The frames in the buffered images
  • Method Details

    • getImage

      public BufferedImage getImage()
      Provides the buffer image.
      Returns:
      the buffered image
    • getCount

      public int getCount()
      The number of sequence frames in this sprite sheet is not auto-magically computed. Client code should ensure consistency.
      Returns:
      the number of frames defined for this sheet