|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colossus.client.Strike
public final class Strike
Class Strike holds client-side strike logic.
Field Summary | |
---|---|
private Client |
client
|
private static java.util.logging.Logger |
LOGGER
|
Constructor Summary | |
---|---|
Strike(Client client)
|
Method Summary | |
---|---|
boolean |
canStrike(BattleCritter striker,
BattleCritter target)
|
private int |
countStrikes(BattleCritter battleUnit,
boolean rangestrike)
|
(package private) java.util.Set<BattleHex> |
findCrittersWithTargets()
Return the set of hexes with critters that have valid strike targets. |
private java.util.Set<BattleHex> |
findStrikes(BattleCritter battleUnit,
boolean rangestrike)
Return a set of hexes containing targets that the critter may strike. |
(package private) java.util.Set<BattleHex> |
findStrikes(int tag)
|
private boolean |
isLOSBlocked(BattleHex hex1,
BattleHex hex2)
Deprecated. Should use an extension of Battle instead of Strike |
private boolean |
isLOSBlockedDir(BattleHex initialHex,
BattleHex currentHex,
BattleHex finalHex,
boolean left,
int strikeElevation,
boolean strikerAtop,
boolean strikerAtopCliff,
boolean strikerAtopWall,
boolean midObstacle,
boolean midCliff,
boolean midChit,
int totalObstacles,
int totalWalls)
Deprecated. Should use an extension of Battle instead of Strike |
(package private) static boolean |
isObstacle(char hexside)
Deprecated. |
private boolean |
isRangestrikePossible(BattleCritter striker,
BattleCritter target)
Deprecated. |
(package private) boolean |
makeForcedStrikes(boolean rangestrike)
Perform strikes for any creature that is forced to strike and has only one legal target. |
int |
minRangeToEnemy(BattleCritter battleUnit)
Deprecated. Should use an extension of Battle instead of Strike |
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 final Client client
Constructor Detail |
---|
Strike(Client client)
Method Detail |
---|
java.util.Set<BattleHex> findCrittersWithTargets()
boolean makeForcedStrikes(boolean rangestrike)
public boolean canStrike(BattleCritter striker, BattleCritter target)
java.util.Set<BattleHex> findStrikes(int tag)
private java.util.Set<BattleHex> findStrikes(BattleCritter battleUnit, boolean rangestrike)
private int countStrikes(BattleCritter battleUnit, boolean rangestrike)
@Deprecated public int minRangeToEnemy(BattleCritter battleUnit)
@Deprecated static boolean isObstacle(char hexside)
@Deprecated private boolean isLOSBlockedDir(BattleHex initialHex, BattleHex currentHex, BattleHex finalHex, boolean left, int strikeElevation, boolean strikerAtop, boolean strikerAtopCliff, boolean strikerAtopWall, boolean midObstacle, boolean midCliff, boolean midChit, int totalObstacles, int totalWalls)
@Deprecated private boolean isLOSBlocked(BattleHex hex1, BattleHex hex2)
@Deprecated private boolean isRangestrikePossible(BattleCritter striker, BattleCritter target)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |