net.ctdp.rfdynhud.util
Class SubTextureCollector

java.lang.Object
  extended by net.ctdp.rfdynhud.util.SubTextureCollector

public class SubTextureCollector
extends java.lang.Object

Sub textures (TransformableTextures) are collected here.

Author:
Marvin Froehlich (CTDP)

Constructor Summary
SubTextureCollector()
           
 
Method Summary
 void add(TransformableTexture subTexture)
          Adds a TransformableTexture to the end of the list.
 TransformableTexture get(int index)
          Gets the index-th sub texture from the list.
 int getNumberOf()
          Gets the number of sub textures in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubTextureCollector

public SubTextureCollector()
Method Detail

add

public void add(TransformableTexture subTexture)
Adds a TransformableTexture to the end of the list.

Parameters:
subTexture -

getNumberOf

public final int getNumberOf()
Gets the number of sub textures in the list.

Returns:
the number of sub textures in the list.

get

public final TransformableTexture get(int index)
Gets the index-th sub texture from the list.

Parameters:
index -
Returns:
the index-th sub texture from the list.