aboutsummaryrefslogtreecommitdiff
path: root/go/client
Commit message (Collapse)AuthorAgeFilesLines
* add random challange aupport to the clientFlorian Fischer2025-07-282-2/+28
|
* show the winner after the game is doneFlorian Fischer2025-07-281-2/+30
|
* do not pass nil selections to promptFlorian Fischer2025-07-241-0/+3
|
* present reset button on top of promptFlorian Fischer2025-07-241-3/+6
|
* prompt for all targets that allow a selectionFlorian Fischer2025-07-241-1/+1
|
* hide the store after declaring the buy actionFlorian Fischer2025-07-241-1/+10
|
* remove player color from game codeFlorian Fischer2025-07-192-5/+2
|
* refactor playerControlFlorian Fischer2025-07-061-3/+9
| | | | | | | Allow to propagate errors in order to handle them acordingly. Use playerNotifications by value to reduce the amount of allocations. Add session managment playerNotifications. Support marshalling notifications to plain text.
* support remote draftsFlorian Fischer2025-07-031-1/+1
|
* rework the client's input handlingFlorian Fischer2025-07-032-66/+66
|
* improve prompt cancellationFlorian Fischer2025-07-032-10/+26
| | | | | | | | The cancel button was overlaying the submit button preventing the submission of a prompt. Distinguish between cancelable and mandatory prompt. Only^ allow cancelable prompts to be removed. Fixes: 37acd982
* make input events consumableFlorian Fischer2025-07-032-1/+2
| | | | | | Having a input queue of consumable input events allow widgets to prevent the further handling of the same event by different collections by consuming the event.
* refactor client activitiesFlorian Fischer2025-07-034-362/+32
| | | | | Make the activity stack explicit and move reusable activities to the activity package.
* add touch friendly way to cancel the current promptFlorian Fischer2025-05-012-9/+24
|
* implement simple bot based draftFlorian Fischer2025-05-012-0/+210
|
* support touch inputFlorian Fischer2025-05-011-0/+4
|
* improve the sealed activityFlorian Fischer2025-05-011-21/+31
| | | | | | Do not export the sealed client type. Validate the entered set list. Show the default set list.
* support touch input as selectionFlorian Fischer2025-05-012-5/+37
|
* define global player colorsFlorian Fischer2025-04-133-8/+2
|
* improve and fix slow action timing checkFlorian Fischer2025-01-271-0/+4
| | | | | Do not allow to declare slow play actions in the client. Fix the slow action check in the game state.
* introduce game.State interface abstractionFlorian Fischer2025-01-272-32/+27
| | | | | This allows to not use the internal game state directly from client code.
* support choosing a value for X when playing cards with variadic costsFlorian Fischer2025-01-271-9/+27
|
* check if Targets allow a selectionFlorian Fischer2025-01-271-1/+1
| | | | This fixes highlighting when an action needs no targets at all.
* client: start trigger implementationFlorian Fischer2025-01-271-0/+14
|
* client: make key bindings dynamicFlorian Fischer2025-01-272-32/+85
|
* remove duplicate selectedObject assignmentsFlorian Fischer2025-01-271-2/+0
| | | | | The selected obj is assigned when creating an action choice therefore it is not necessary to assign it additionally beforehand.
* client: remove active prompt or choice before adding a new oneFlorian Fischer2025-01-271-6/+12
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-01-272-2/+2
|
* prompt for selection if the targets allow selectionsFlorian Fischer2025-01-271-1/+2
|
* ui: separate selection and options via their highlight colorFlorian Fischer2025-01-271-11/+12
|
* intermediate commitFlorian Fischer2025-01-271-1/+3
| | | | | | * use names for pile perm choice * fix PocList hover segfault * prevent mysterius autogenerated playTargets segfault
* intermediate commitFlorian Fischer2025-01-272-2/+12
| | | | | | | | | | | * Implement move artifact action * Fix widget update memory leak * update the highlights not during on each frame * do not update the unchanged label of a button * Allow to exit the game by pressing 'q' * Implement some cards from the magic set * Improve permanent formatting * Some tweaks to UnitAI code
* fixup! intermeditae commitFlorian Fischer2025-01-271-1/+0
|
* run screen updates after handling user inputFlorian Fischer2025-01-271-4/+8
| | | | | The reordering of the update logic hopefully results in a more responsive UX.
* allow to exit any prompt on escFlorian Fischer2025-01-271-1/+5
|
* do not draw the pass button multiple timesFlorian Fischer2025-01-271-1/+3
|
* implement equip actionFlorian Fischer2025-01-271-7/+46
|
* use prompt for target selection of all actionsFlorian Fischer2025-01-271-59/+114
|
* implement unit and artifact switch actionFlorian Fischer2025-01-271-10/+5
| | | | | | | | | | Simplify the Choice Widget and make it a TextBox variant. Drive-by fixes: * ui.Collection: prioritize newer widgets during active widget selection * game.FullAction: fix incorrect cost function. Full actions cost all available actions. Also fix the cost check
* move more ui logic into CollectionFlorian Fischer2025-01-274-201/+97
| | | | | * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner
* client: use only the currently available actions in the action choiceFlorian Fischer2025-01-271-2/+2
|
* replace Fatalf with PanicfFlorian Fischer2025-01-271-2/+2
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* fix NPE when adding the wrong widgetFlorian Fischer2025-01-271-1/+1
|
* intermediate commitFlorian Fischer2025-01-271-30/+65
| | | | | | | | | | | | * fix a lot of target and action bugs * check target selection before adding it to the prompt * use the store view for stores on the map * fix card highlighting in CardGrid * Only prompt for Upkeep-/DiscardActions if appropriate * Add helper for areaEffects granting new FullActions * Add Target() helper selecting the first target to the Action interface * Fix BuyAction and DiscardAction targets * Remember the stores a player has seen
* intermediate commitFlorian Fischer2025-01-271-18/+12
|
* sealed: only let the user select buyable cardsFlorian Fischer2025-01-271-1/+6
|
* add sealed activity to select a starting deckFlorian Fischer2025-01-274-68/+192
|
* improve state barFlorian Fischer2025-01-271-3/+2
|
* remove debug messages from the clientFlorian Fischer2025-01-271-2/+0
|
* fix some warnings reported by golang-ciFlorian Fischer2025-01-271-6/+2
|