|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.UnitLocation
public class UnitLocation
A simple class to specify a location and facing for a unit.
| Constructor Summary | |
|---|---|
UnitLocation(int id,
Coords coords,
int facing,
int elevation)
Create a new location object. |
|
| Method Summary | |
|---|---|
Coords |
getCoords()
Get the coordinates of this location. |
int |
getElevation()
Get the elevation of the entity at this location. |
int |
getFacing()
Get the facing of the entity at this location. |
int |
getId()
Get the ID number of the entity at this location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitLocation(int id,
Coords coords,
int facing,
int elevation)
id - the unit's int ID number.coords - the Coords of this location.facing - the unit's int facing at this location.elevation - the unit's int elevation at this location.| Method Detail |
|---|
public int getId()
int ID of the entity.public Coords getCoords()
Coords coordinates of the location.public int getFacing()
int facing of the entity.public int getElevation()
int elevation of the entity.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||