Class Treasure
- java.lang.Object
- 
- jadex.bdiv3.quickstart.treasureisland.environment.Treasure
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class Treasure extends java.lang.Object implements java.lang.CloneableA treasure object.
- 
- 
Constructor SummaryConstructors Constructor Description Treasure()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Treasurecreate(java.util.Random rnd, double width, double height)Create a random treasure.java.awt.geom.Point2DgetLocation()Get the location of the treasure.
 
- 
- 
- 
Method Detail- 
createprotected static Treasure create(java.util.Random rnd, double width, double height) Create a random treasure.- Parameters:
- rnd- The random number generator.
- width- The environment width.
- height- The environment height.
 
 - 
getLocationpublic java.awt.geom.Point2D getLocation() Get the location of the treasure.- Returns:
- The location
 
 
- 
 
-