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.Cloneable
A treasure object.
-
-
Constructor Summary
Constructors Constructor Description Treasure()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Treasure
create(java.util.Random rnd, double width, double height)
Create a random treasure.java.awt.geom.Point2D
getLocation()
Get the location of the treasure.
-
-
-
Method Detail
-
create
protected 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.
-
getLocation
public java.awt.geom.Point2D getLocation()
Get the location of the treasure.- Returns:
- The location
-
-