Class WorldObject
- java.lang.Object
- 
- jadex.bdi.examples.hunterprey_classic.WorldObject
 
- 
- 
Constructor SummaryConstructors Constructor Description WorldObject()Create a new WorldObject.WorldObject(Location location)Create a new WorldObject.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Test if two worldobjects are equal.LocationgetLocation()Get the location of this WorldObject.inthashCode()Get the hash code of the world object.voidsetLocation(Location location)Set the location of this WorldObject.java.lang.StringtoString()Get a string representation of this WorldObject.
 
- 
- 
- 
Field Detail- 
locationprotected Location location The location of the object.
 
- 
 - 
Constructor Detail- 
WorldObjectpublic WorldObject() Create a new WorldObject.
 - 
WorldObjectpublic WorldObject(Location location) Create a new WorldObject.
 
- 
 - 
Method Detail- 
getLocationpublic Location getLocation() Get the location of this WorldObject. The location of the object.- Returns:
- location
 
 - 
setLocationpublic void setLocation(Location location) Set the location of this WorldObject. The location of the object.- Parameters:
- location- the value to be set
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this WorldObject.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if two worldobjects are equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Get the hash code of the world object.- Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-