|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colossus.client.Movement
public final class Movement
Class Movement handles client-side masterboard moves.
Field Summary | |
---|---|
private Client |
client
|
private static java.util.logging.Logger |
LOGGER
|
Constructor Summary | |
---|---|
Movement(Client client)
|
Method Summary | |
---|---|
void |
dispose()
|
private static int |
findBlock(MasterHex hex)
|
private static EntrySide |
findEntrySide(MasterHex hex,
int cameFrom)
Set the entry side relative to the hex label. |
private java.util.Set<MasterHex> |
findNearbyUnoccupiedHexes(MasterHex hex,
Legion legion,
int roll,
int cameFrom)
Recursively find all unoccupied hexes within roll hexes, for tower teleport. |
private java.util.Set<java.lang.String> |
findNormalMoves(MasterHex hex,
Legion legion,
int roll,
int block,
int cameFrom,
MasterHex fromHex)
Recursively find conventional moves from this hex. |
java.util.Set<MasterHex> |
listAllMoves(Legion legion,
MasterHex hex,
int movementRoll)
Return set of hexLabels describing where this legion can move. |
java.util.Set<MasterHex> |
listAllMoves(Legion legion,
MasterHex hex,
int movementRoll,
boolean inAdvance)
Return set of hexLabels describing where this legion can move. |
java.util.Set<MasterHex> |
listNormalMoves(Legion legion,
MasterHex hex,
int movementRoll)
|
private java.util.Set<MasterHex> |
listNormalMoves(Legion legion,
MasterHex hex,
int movementRoll,
boolean inAdvance,
MasterHex fromHex)
Return set of hexLabels describing where this legion can move without teleporting. |
(package private) java.util.Set<EntrySide> |
listPossibleEntrySides(Legion legion,
MasterHex targetHex,
boolean teleport)
Return a Set of Strings "Left" "Right" or "Bottom" describing possible entry sides. |
java.util.Set<MasterHex> |
listTeleportMoves(Legion legion,
MasterHex hex,
int movementRoll)
Return set of hexLabels describing where this legion can teleport. |
private java.util.Set<MasterHex> |
listTeleportMoves(Legion legion,
MasterHex hex,
int movementRoll,
boolean inAdvance)
Return set of hexLabels describing where this legion can teleport. |
boolean |
titanTeleportAllowed()
|
private boolean |
towerTeleportAllowed()
|
private boolean |
towerToNonTowerTeleportAllowed()
|
private boolean |
towerToTowerTeleportAllowed()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger LOGGER
private Client client
Constructor Detail |
---|
Movement(Client client)
Method Detail |
---|
private static EntrySide findEntrySide(MasterHex hex, int cameFrom)
private java.util.Set<java.lang.String> findNormalMoves(MasterHex hex, Legion legion, int roll, int block, int cameFrom, MasterHex fromHex)
private java.util.Set<MasterHex> findNearbyUnoccupiedHexes(MasterHex hex, Legion legion, int roll, int cameFrom)
public java.util.Set<MasterHex> listAllMoves(Legion legion, MasterHex hex, int movementRoll)
public java.util.Set<MasterHex> listAllMoves(Legion legion, MasterHex hex, int movementRoll, boolean inAdvance)
private static int findBlock(MasterHex hex)
public java.util.Set<MasterHex> listNormalMoves(Legion legion, MasterHex hex, int movementRoll)
private java.util.Set<MasterHex> listNormalMoves(Legion legion, MasterHex hex, int movementRoll, boolean inAdvance, MasterHex fromHex)
private boolean towerTeleportAllowed()
private boolean towerToTowerTeleportAllowed()
private boolean towerToNonTowerTeleportAllowed()
public boolean titanTeleportAllowed()
public java.util.Set<MasterHex> listTeleportMoves(Legion legion, MasterHex hex, int movementRoll)
private java.util.Set<MasterHex> listTeleportMoves(Legion legion, MasterHex hex, int movementRoll, boolean inAdvance)
java.util.Set<EntrySide> listPossibleEntrySides(Legion legion, MasterHex targetHex, boolean teleport)
public void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |