Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically display pathing maps + command to do so #214

Open
Son-Guhun opened this issue Mar 2, 2021 · 0 comments
Open

Dynamically display pathing maps + command to do so #214

Son-Guhun opened this issue Mar 2, 2021 · 0 comments
Assignees

Comments

@Son-Guhun
Copy link
Owner

Son-Guhun commented Mar 2, 2021

New arg for the function that applies a pathing map: showBlocked

if showBlocked is true:

  • Displays images for any cells that were blocked by the operation (or were already blocked).
  • Images for blocks that were unblocked by the operation are always hidden (if they were visible).

Cases for validation:

  • apply(true, true) called for a cell that was already blocked -> image shown
  • apply(true, false) called for a cell that was blocked and had image shown -> image still shown
  • apply(false, -) called for blocked cell with image shown that becomes unblocked -> image hidden.
  • apply(false, -) called for a blocked cell with image hidden -> image still hidden
  • apply(false, -) called for a blocked cell, but does not change state -> image visibility kept
  • apply(false, -) called for a blocked cell from the only source for that cell which had visibility enabled -> image remains visible, when it should have been hidden.

Commands:

  • path show/hide -> toggle path display for the specified unit
  • path on/off -> toggle path map for the specified unit
  • path reset -> reset value for both visibility and state to default for the specified unit
  • path reset visibility -> reset visibility only
  • path reset state -> reset on/off state only
  • path default show/hide -> toggle whether pathing maps should be shown for the player's units by default
  • path default on/off -> toggle whether pathing maps should on or off for the player's units by default.
  • path default all (arg) -> toggle default value for all players (Titan Only)
@Son-Guhun Son-Guhun self-assigned this Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant