jfreerails.client.renderer
Class TileRendererListImpl

java.lang.Object
  extended by jfreerails.client.renderer.TileRendererListImpl
All Implemented Interfaces:
TileRendererList

public final class TileRendererListImpl
extends java.lang.Object
implements TileRendererList

A list of TileRenderers stored in an array and created from an ArrayList.

Author:
Luke Lindsay 09 October 2001

Field Summary
private  TileRenderer[] tiles
           
 
Constructor Summary
TileRendererListImpl(java.util.ArrayList<TileRenderer> t)
           
 
Method Summary
 TileRenderer getTileViewWithNumber(int i)
           
 boolean validate(ReadOnlyWorld w)
          Checks whether this tile view list has tile views for all the terrain types in the specifed list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tiles

private final TileRenderer[] tiles
Constructor Detail

TileRendererListImpl

public TileRendererListImpl(java.util.ArrayList<TileRenderer> t)
Method Detail

getTileViewWithNumber

public TileRenderer getTileViewWithNumber(int i)
Specified by:
getTileViewWithNumber in interface TileRendererList

validate

public boolean validate(ReadOnlyWorld w)
Description copied from interface: TileRendererList
Checks whether this tile view list has tile views for all the terrain types in the specifed list.

Specified by:
validate in interface TileRendererList