cloakfall
    Preparing search index...

    Function attackListener

    • target is the board the listener was attached to (see buildPlayers): a DomItem here, like every listener's target, but really always a Board. During the placement phase a click places a ship rather than attacking - local hot-seat's own handoff-based placement, or (for a remote game) simultaneous per-player placement/ordering; exactly one of the two is ever active for a given game, never both.

      Parameters

      • e: Event
      • target: DomItem

      Returns Player[]