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.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int index()
public int type()
throws java.lang.Exception
java.lang.ExceptionTYPE_NORMAL,
TYPE_DEAD_END,
TYPE_BLACK_HOLEpublic int[] gates()
throws java.lang.Exception
java.lang.Exceptionpublic int size()
throws java.lang.Exception
java.lang.Exceptionpublic int depth()
throws java.lang.Exception
java.lang.Exceptionpublic int distanceToStarDock()
throws java.lang.Exception
java.lang.ExceptiondistanceFromStarDock()public int distanceFromStarDock()
throws java.lang.Exception
java.lang.ExceptiondistanceToStarDock()public int distanceToSector1()
throws java.lang.Exception
java.lang.ExceptiondistanceFromSector1()public int distanceFromSector1()
throws java.lang.Exception
java.lang.ExceptiondistanceToSector1()public int[] sectors()
throws java.lang.Exception
java.lang.Exceptionpublic int secure()
throws java.lang.Exception
YES if secure, NO if not secure or
UNKNOWN if not known.java.lang.ExceptionSwath.YES,
Swath.NO,
Swath.UNKNOWNpublic void dump()
throws java.lang.Exception
java.lang.Exception