Skip to content

New order scheme #457

@JorenC

Description

@JorenC

Current work in progress on the "ElegantOrders" branch:

Bugs

  • In the current turn, new orders are unresolved but are not drawn black, but red
    image
  • For some phases (seems to be adjustment?) there is a hard crash:

Features

  • Support fleets into coasts:
    When any unit supports a fleet into a coast province, it will support to the center of the province.
    For current turn orders; if the fleet can only move into one coast, it needs to support to that coast.
    For resolved orders: if the fleet moved into a coast, it needs to support to that coast.
    For resolved orders: if the fleet could have moved into only one coast, it needs to support to that coast.
    For resolved orders; if the fleet could have moved into both coasts (e.g. Spain) and didn't, it needs to suppor to the province center.
    image

  • Colliding moves
    When two move (or support) orders collide, we need to move them apart so that you can see both moves. DONE
    When there is one move order and two support orders, we only adjust one support order. Need to check if this is sufficient.
    image

  • Dislodged state
    This needs to be clearer which unit is dislodged.
    image

  • Adjustment states
    Need to update the build state to make them visually clearer DONE
    image
    Need to update the disband state to make them visually clearer.
    image

  • Support Hold
    Need a Support Hold marker and make support lines dashed DONE
    image
    Need a failed Support Hold marker
    Challenge: Adjucator will say "OK" in resolution state, even if dislodged.
    We need to check which is higher to include:
    -- Count all support hold orders for this province
    -- Count all move + their support orders (per different move origins!)
    image

  • MoveViaConvoy orders (after adjucation)
    -- Needs to move through every fleet. Likely be transparent.
    -- Needs to calculate a logical path through fleets. Ideally through the center between two fleets if both could support.
    -- Needs an update for supports - likely only last leg of the Convoy.
    -- Needs an update if colliding (including supports) - likely only first and last legs of the Convoy.
    image

  • Convoy orders
    -- A line from control point (fleet) to t=0.5 point of the curve.
    -- A reverse triangle on the fleet.
    image

  • Convoy orders (before adjucation)
    -- Need to have a straight line for MoveViaConvoy
    -- Need to have a straight (transparent) line for the MoveViaConvoy order if current player is Convoying and doesn't know what the Moving order does.

  • Failed orders:
    Failed Hold.
    Failed Convoy.
    Failed MoveViaConvoy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions