wyvern.lib.classes.random
Class RandomTreasure

java.lang.Object
  extended bywyvern.lib.classes.random.RandomTreasure

public class RandomTreasure
extends java.lang.Object

Generates random treasure (gems and coins).

Version:
1.0, Apr 29, 2001
Author:
Steve Yegge

Constructor Summary
RandomTreasure()
           
 
Method Summary
static void main(java.lang.String[] args)
          Tests the class.
static GameObject randomTreasure(int level)
          Generates treasure of the passed level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomTreasure

public RandomTreasure()
Method Detail

randomTreasure

public static GameObject randomTreasure(int level)
Generates treasure of the passed level.

Parameters:
level - the level of treasure to generate
Returns:
the treasure, or null if there was an error of some sort

main

public static void main(java.lang.String[] args)
Tests the class.