public final class Bubble extends Info
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BLACK_HOLE
This is a black hole.
|
static int |
TYPE_DEAD_END
This is a dead end/tunnel.
|
static int |
TYPE_NORMAL
This is a normal bubble.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
depth()
Gets the depth of this bubble in number of sectors
from the gate sector to the depest sector in the bubble.
|
int |
distanceFromSector1()
Gets the distance from sector 1 to the bubble.
|
int |
distanceFromStarDock()
Gets the distance from the StarDock to the bubble.
|
int |
distanceToSector1()
Gets the distance from the bubble to sector 1.
|
int |
distanceToStarDock()
Gets the distance from the bubble to the StarDock.
|
void |
dump()
Dumps the bubble info in the terminal window.
|
boolean |
equals(java.lang.Object obj) |
int[] |
gates()
Gets the gate sector(s) for the bubble.
|
int |
index()
Gets the bubble index.
|
int[] |
sectors()
Gets the bubble sectors.
|
int |
secure()
Indicates if the bubble is secure or not.
|
int |
size()
Gets the number of sectors behind the gate sector(s).
|
java.lang.String |
toString() |
int |
type()
Gets the bubble type.
|
public static final int TYPE_NORMAL
public static final int TYPE_DEAD_END
public static final int TYPE_BLACK_HOLE
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int index()
public int type() throws java.lang.Exception
java.lang.Exception
TYPE_NORMAL
,
TYPE_DEAD_END
,
TYPE_BLACK_HOLE
public int[] gates() throws java.lang.Exception
java.lang.Exception
public int size() throws java.lang.Exception
java.lang.Exception
public int depth() throws java.lang.Exception
java.lang.Exception
public int distanceToStarDock() throws java.lang.Exception
java.lang.Exception
distanceFromStarDock()
public int distanceFromStarDock() throws java.lang.Exception
java.lang.Exception
distanceToStarDock()
public int distanceToSector1() throws java.lang.Exception
java.lang.Exception
distanceFromSector1()
public int distanceFromSector1() throws java.lang.Exception
java.lang.Exception
distanceToSector1()
public int[] sectors() throws java.lang.Exception
java.lang.Exception
public int secure() throws java.lang.Exception
YES
if secure, NO
if not secure or
UNKNOWN
if not known.java.lang.Exception
Swath.YES
,
Swath.NO
,
Swath.UNKNOWN
public void dump() throws java.lang.Exception
java.lang.Exception