| Modifier and Type | Field and Description |
|---|---|
protected Location |
location
The location of the object.
|
| Constructor and Description |
|---|
WorldObject()
Create a new WorldObject.
|
WorldObject(Location location)
Create a new WorldObject.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Test if two worldobjects are equal.
|
Location |
getLocation()
Get the location of this WorldObject.
|
int |
hashCode()
Get the hash code of the world object.
|
void |
setLocation(Location location)
Set the location of this WorldObject.
|
java.lang.String |
toString()
Get a string representation of this WorldObject.
|
protected Location location
public WorldObject()
public WorldObject(Location location)
public Location getLocation()
public void setLocation(Location location)
location - the value to be setpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object