|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--universe.common.database.Location
The Location class represents a "location" in the universe. For example, this location might be a coordinate in space or orbiting a planet or docked at a space station. The class LocationType is an enumrated type for this class. This class is immutable.
LocationType
,
Serialized FormField Summary | |
Coord |
coord
|
GalaxyID |
galaxyid
|
PlanetID |
planetid
|
StationID |
stationid
|
SystemID |
systemid
|
LocationType |
type
|
Constructor Summary | |
Location()
Default constructor - sets an undefined location object. |
|
Location(Coord in_coord)
Constructor that takes a Coord object. |
|
Location(GalaxyID in_galaxy,
Coord in_coord)
Constructor that takes a Coord object. |
|
Location(Location loc)
|
|
Location(PlanetID PID)
Constructor that takes a PlanetID object representing orbiting the planet. |
|
Location(PlanetID PID,
boolean surface)
Constructor that takes a PlanetID object and a boolean representing if the location is in orbit or on the surface. |
|
Location(StationID BID)
Constructor that takes a StationID object. |
|
Location(SystemID SID)
Constructor that takes a SystemID object. |
Method Summary | |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object ob)
|
LocationType |
getType()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final LocationType type
public final Coord coord
public final GalaxyID galaxyid
public final SystemID systemid
public final PlanetID planetid
public final StationID stationid
Constructor Detail |
public Location(Location loc)
public Location()
public Location(Coord in_coord)
public Location(GalaxyID in_galaxy, Coord in_coord)
public Location(PlanetID PID)
public Location(PlanetID PID, boolean surface)
public Location(SystemID SID)
public Location(StationID BID)
Method Detail |
public java.lang.Object clone()
clone
in class java.lang.Object
public LocationType getType()
public boolean equals(java.lang.Object ob)
equals
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |