Class ScreenLauncherBayHandler

All Implemented Interfaces:
Serializable, AttackHandler

public class ScreenLauncherBayHandler extends AmmoBayWeaponHandler
See Also:
  • Constructor Details

  • Method Details

    • calcAttackValue

      protected int calcAttackValue()
      Screen Launchers always deal 15 damage per launcher. Override parent's calcAttackValue which sums all weapons in bay. Each launcher in the bay fires independently in the handle() loop.
      Overrides:
      calcAttackValue in class AmmoBayWeaponHandler
      Returns:
      an int representing the attack value at that range.
    • handle

      public boolean handle(GamePhase phase, Vector<Report> vPhaseReport)
      handle this weapons firing
      Specified by:
      handle in interface AttackHandler
      Overrides:
      handle in class BayWeaponHandler
      Parameters:
      phase - The present game phase
      vPhaseReport - The reports list to add new reports to
      Returns:
      a boolean value indicating whether this should be kept or not