rl.centurion.game
Class CenturionCombatEngine
java.lang.Object
rl.centurion.game.CenturionCombatEngine
public class CenturionCombatEngine
- extends java.lang.Object
|
Method Summary |
java.util.Vector<GameElementDamageSummary> |
applyDamage(FiringAttemptPacket fap,
FireAttemptRecord attempt,
java.util.Vector<GameElementLocationAffiliation> containedElements)
|
boolean |
elementHasValidTargets(GameElement element)
|
Vehicle.Side |
getShieldArc(HexLocation sourceLocation,
VehicleLocation targetLocation)
|
int |
getTargetArc(VehicleLocation sourceLocation,
HexLocation targetLocation,
int elementFacing)
|
int |
getToHitNumber(GameElement source,
HexLocation sourceLocation,
GameElement target,
HexLocation targetLocation,
boolean ignoresShield)
|
java.util.Vector<EquipmentMount> |
getValidFiringWeapons(Vehicle vehicle,
VehicleLocation sourceLocation,
HexLocation targetLocation,
int turn)
|
java.util.Vector<GameElementIdentifier> |
getValidTargets(GameElement element)
|
boolean |
isValidTarget(GameElement firer,
GameElement target)
|
FireAttemptRecord |
makeFireAttempt(FiringAttemptPacket packet,
FiringAttemptOrder order,
java.util.Vector<GameElement> targetPaintedByElements)
|
FireAttemptRecord |
makePaintAttempt(PaintAttemptOrder pao)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CenturionCombatEngine
public CenturionCombatEngine(CenturionBoard board,
CenturionElementVisibility elementVisibility,
int turn)
makePaintAttempt
public FireAttemptRecord makePaintAttempt(PaintAttemptOrder pao)
makeFireAttempt
public FireAttemptRecord makeFireAttempt(FiringAttemptPacket packet,
FiringAttemptOrder order,
java.util.Vector<GameElement> targetPaintedByElements)
getTargetArc
public int getTargetArc(VehicleLocation sourceLocation,
HexLocation targetLocation,
int elementFacing)
getShieldArc
public Vehicle.Side getShieldArc(HexLocation sourceLocation,
VehicleLocation targetLocation)
getValidFiringWeapons
public java.util.Vector<EquipmentMount> getValidFiringWeapons(Vehicle vehicle,
VehicleLocation sourceLocation,
HexLocation targetLocation,
int turn)
getToHitNumber
public int getToHitNumber(GameElement source,
HexLocation sourceLocation,
GameElement target,
HexLocation targetLocation,
boolean ignoresShield)
applyDamage
public java.util.Vector<GameElementDamageSummary> applyDamage(FiringAttemptPacket fap,
FireAttemptRecord attempt,
java.util.Vector<GameElementLocationAffiliation> containedElements)
elementHasValidTargets
public boolean elementHasValidTargets(GameElement element)
isValidTarget
public boolean isValidTarget(GameElement firer,
GameElement target)
getValidTargets
public java.util.Vector<GameElementIdentifier> getValidTargets(GameElement element)