| Modifier and Type | Field and Description |
|---|---|
byte |
orient
The user's orientation (defined by
DirectionCodes). |
int |
x
The user's x position (interpreted by the display system).
|
int |
y
The user's y position (interpreted by the display system).
|
| Constructor and Description |
|---|
StageLocation()
A zero-argument constructor used when unserializing instances.
|
StageLocation(int x,
int y,
byte orient)
Constructs a location with the specified coordinates and
orientation.
|
| Modifier and Type | Method and Description |
|---|---|
StageLocation |
clone()
Locations are cloneable.
|
boolean |
equals(Object other)
Location equality is determined by coordinates.
|
boolean |
equivalent(Location oloc)
Location equivalence means that the coordinates and orientation are
the same.
|
Location |
getOpposite()
Get a new Location instance that is equals() to this one but that
has an orientation facing the opposite direction.
|
int |
hashCode()
Computes a reasonable hashcode for location instances.
|
String |
orientToString()
Object.toString() helper function. |
public int x
public int y
public byte orient
DirectionCodes).public StageLocation()
public StageLocation(int x,
int y,
byte orient)
public String orientToString()
Object.toString() helper function.public Location getOpposite()
LocationgetOpposite in interface Locationpublic boolean equivalent(Location oloc)
equivalent in interface Locationpublic boolean equals(Object other)
public int hashCode()
Copyright © 2015. All rights reserved.