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

Performing Actions Flow #61

Closed
7 tasks done
Zomis opened this issue Aug 21, 2015 · 1 comment
Closed
7 tasks done

Performing Actions Flow #61

Zomis opened this issue Aug 21, 2015 · 1 comment

Comments

@Zomis
Copy link
Member

Zomis commented Aug 21, 2015

This is how I imagine performing actions should work, from a user point of view:

Let's say that you have the following actions available: (just as an example, some of these actions does not exist yet but may be added at any time in the future, whenever the server feels like it)

  • Play Card A in hand
  • Play Card B in hand
  • Attack with Card C on battlefield
  • Scrap Card C on battlefield
  • Activate Hero Power: Deal 1 damage to any target
  • End Turn

Card A and B in hand should be highlighted somehow so that it is clear that they can be played, or they can have a button next to them that says "Play"

Card C should be highlighted so that it is clear that it can attack (or have a button next to it that says "Attack")
Card C should also have a button "Scrap"

Two buttons for the Player-related actions: "Activate Hero Power", "End Turn".


Actions without targets

  • If you press "End Turn", the turn ends directly. No need for any confirmation.
  • If you play Card A or B, it gets played directly, no confirmation.
  • If you click the button for scrapping Card C, it gets scrapped directly, no confirmation.

Basically:

  • All actions that does not have targets should be performed directly when their corresponding button is clicked

Actions with targets

  • If you choose to Attack with Card C on battlefield, or activate the Hero Power, you will request the target ids from the server. The available targets should be highlighted (a bunch of cards and players).
  • There should be a "Cancel" button available that cancels the action, as if you never clicked the action in the first place
  • If the action only needs exactly one target, click the target and you will perform the action.

Actions with more than one target, or up to one target (i.e. 0 or 1 targets)

When you click the button for performing an action, and the action does not require exactly one target:

  • toggle the targets that you want (click once to select, click again to unselect)
  • Selected targets should be highlighted
  • When you are happy with your selection, you click an "OK" button (or some button that has that effect)
@Zomis
Copy link
Member Author

Zomis commented Aug 22, 2015

Some actions with targets, such as Mulligan, should not require a target. (which makes the targetRequired boolean slightly confusing, sorry for that). I mean... it should be possible to target 0 cards.

The AvailableTargetsMessage for the Mulligan action is:

AvailableTargetsMessage [entity=115, action=Mulligan, min=0, max=2147483647, targets=[151, 156, 161, 163, 169]]

Notice the min=0, that means that it is okay to target 0 cards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants