Package world.mappable.runtime.image

Class AnimatedImage

java.lang.Object
    ↳ world.mappable.runtime.image.AnimatedImage

class AnimatedImage

An animated image.

Summary

Constructors

Signature and Description

AnimatedImage(int loopCount,
              java.util.List<Frame> frames)

AnimatedImage(int loopCount)

Methods

Type and modifiers

Method and Description

void

addFrame(ImageProvider image,
         long duration)

java.util.List<Frame>

getFrames()
Returns a list of animation frames.

int

getLoopCount()
Returns the number of animation loops.

Constuctors

AnimatedImage

AnimatedImage(int loopCount,
              java.util.List<Frame> frames)


AnimatedImage

AnimatedImage(int loopCount)


Methods

addFrame

void addFrame(ImageProvider image,
              long duration)


getFrames

java.util.List<Frame> getFrames()

Returns a list of animation frames.


getLoopCount

int getLoopCount()

Returns the number of animation loops.

The zero value is treated as infinity.