unc.cdva.graphics.animations
Class ReticleHandler

java.lang.Object
  extended by unc.cdva.graphics.animations.TextureAnimationHandler
      extended by unc.cdva.graphics.animations.ReticleHandler

public class ReticleHandler
extends TextureAnimationHandler

Used to manage the textures of the reticle. This involves doing two things, loading the textures, and then returning a texture that is desired.

Author:
Guillaume Conte

Field Summary
 
Fields inherited from class unc.cdva.graphics.animations.TextureAnimationHandler
textures
 
Constructor Summary
ReticleHandler(java.lang.String texturePath)
           
 
Method Summary
 com.sun.opengl.util.texture.Texture handle(int state)
          Returns a texture corresponding to the objects state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReticleHandler

public ReticleHandler(java.lang.String texturePath)
See Also:
TextureAnimationHandler.TextureAnimationHandler(String, int)
Method Detail

handle

public com.sun.opengl.util.texture.Texture handle(int state)
Description copied from class: TextureAnimationHandler
Returns a texture corresponding to the objects state.

Specified by:
handle in class TextureAnimationHandler
Parameters:
state - The objects state which we are interested in.
Returns:
A texture corresponding to the state indicated by the state parameter.
See Also:
TextureAnimationHandler.handle(int)