ballworld.model.paint.strategy
Class PlanetImagePaintStrategy

java.lang.Object
  extended by ballworld.model.paint.APaintStrategy
      extended by ballworld.model.paint.ImagePaintStrategy
          extended by ballworld.model.paint.strategy.PlanetImagePaintStrategy
All Implemented Interfaces:
IPaintStrategy

public class PlanetImagePaintStrategy
extends ImagePaintStrategy

Paint strategy that upon instantiation, randomly picks one image from an array of images to use.

Author:
swong

Field Summary
private static java.lang.String[] files
          Static list of image file choices.
 
Fields inherited from class ballworld.model.paint.ImagePaintStrategy
localAT
 
Fields inherited from class ballworld.model.paint.APaintStrategy
at
 
Fields inherited from interface ballworld.model.IPaintStrategy
NullObject
 
Constructor Summary
PlanetImagePaintStrategy()
          Randomly pick one of the image files to use when being constructed.
 
Method Summary
 
Methods inherited from class ballworld.model.paint.ImagePaintStrategy
init, paintXfrm
 
Methods inherited from class ballworld.model.paint.APaintStrategy
paint, paintCfg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

files

private static java.lang.String[] files
Static list of image file choices. All files have a 1.0 fill factor.

Constructor Detail

PlanetImagePaintStrategy

public PlanetImagePaintStrategy()
Randomly pick one of the image files to use when being constructed.