javalib.worldimages
Class WorldEnd

java.lang.Object
  extended by javalib.worldimages.WorldEnd

public class WorldEnd
extends Object

The class to represent a pair of values boolean and WorldImage.

This is used to indicate when the world should end and allow for creating one last image to display at the end.

Since:
February 4 2012, then Dec 12 2012
Author:
Viera K. Proulx, slightly modified by Stephen Bloch

Field Summary
 WorldImage lastImage
          the last image to display when the world ends
 boolean worldEnds
          the indicator whether the world should end: true if the world should end, false if the world goes on
 
Constructor Summary
WorldEnd(boolean worldEnds, WorldImage lastImage)
          The standard full constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastImage

public WorldImage lastImage
the last image to display when the world ends


worldEnds

public boolean worldEnds
the indicator whether the world should end: true if the world should end, false if the world goes on

Constructor Detail

WorldEnd

public WorldEnd(boolean worldEnds,
                WorldImage lastImage)
The standard full constructor.

Parameters:
worldEnds - true if the world should end, false if the world goes on
lastImage - the last image to display when the world ends (ignored if the world goes on)