org.jrabbit.standard.game.objects.particles
Class ParticleSprite.Images

java.lang.Object
  extended by org.jrabbit.standard.game.objects.base.Spatial
      extended by org.jrabbit.standard.game.objects.base.BaseSprite
          extended by org.jrabbit.standard.game.objects.particles.ParticleSprite
              extended by org.jrabbit.standard.game.objects.particles.ParticleSprite.Images
All Implemented Interfaces:
java.lang.Iterable<Particle>, Renderable, Updateable, Accepter<Particle>, Container<Particle>, Remover<Particle>, Skin, GLTransform, Blended, Colored, Dimensioned, GLGroupTransformed, Located, Rotated, Scaled, ScreenObject, Visible
Enclosing class:
ParticleSprite

public static class ParticleSprite.Images
extends ParticleSprite

ParticleSprite.Images is a convenience class that simplifies the process to create a ParticleSprite that uses Images in rendering.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jrabbit.standard.game.objects.particles.ParticleSprite
ParticleSprite.Images, ParticleSprite.Transforming
 
Field Summary
 
Fields inherited from class org.jrabbit.standard.game.objects.particles.ParticleSprite
blending, particles, skins
 
Fields inherited from class org.jrabbit.standard.game.objects.base.BaseSprite
color, screenCoords, transforms, visible
 
Fields inherited from class org.jrabbit.standard.game.objects.base.Spatial
location, rotation, scalar
 
Constructor Summary
ParticleSprite.Images(java.lang.String... references)
          Creates a ParticleSprite that uses Images to render its particles.
 
Method Summary
private static ImageSkin[] createImageSkins(java.lang.String... references)
          A convenience method to turn a list of references into a list of ImageSkins.
 
Methods inherited from class org.jrabbit.standard.game.objects.particles.ParticleSprite
add, add, blending, clear, contains, draw, height, iterator, remove, remove, setSkins, shouldRender, size, skinAt, skins, update, width
 
Methods inherited from class org.jrabbit.standard.game.objects.base.BaseSprite
bind, color, onscreen, release, render, screenCoords, setVisible, transforms, visible
 
Methods inherited from class org.jrabbit.standard.game.objects.base.Spatial
location, rotation, scalar, scaledDiameter, scaledHeight, scaledWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleSprite.Images

public ParticleSprite.Images(java.lang.String... references)
Creates a ParticleSprite that uses Images to render its particles.

Parameters:
references - The list of identifiers that determine which Images to access from the cache.
Method Detail

createImageSkins

private static ImageSkin[] createImageSkins(java.lang.String... references)
A convenience method to turn a list of references into a list of ImageSkins.

Parameters:
references - The series of references that indicate which Images to use.
Returns:
An array of ImageSkins corresponding to the references indicated.