aboutsummaryrefslogtreecommitdiff
path: root/go/client
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* improve permanent pile supportFlorian Fischer2025-01-271-9/+37
| | | | | | * Fix alot of bugs caused by permanents without tiles * Implement a permanent choice to select the permanents in a pile * Fix how pile hooks are called
* set textInput input value to the specified player nameFlorian Fischer2025-01-271-6/+6
| | | | | Only setting the label gives the user the wronmg impression and does not return any input.
* add text input and properly center textFlorian Fischer2025-01-271-10/+61
|
* intermediate commitFlorian Fischer2025-01-273-67/+60
|
* intermediate commitFlorian Fischer2025-01-273-530/+677
|
* make screen dimensions members of the game objectFlorian Fischer2025-01-271-18/+23
|
* intermediate commitFlorian Fischer2025-01-271-11/+49
|
* intermeditae commitFlorian Fischer2025-01-271-114/+271
|
* intermediate commitFlorian Fischer2025-01-271-17/+13
|
* intermediate commitFlorian Fischer2025-01-271-53/+132
|
* intermediate commitFlorian Fischer2025-01-271-25/+14
| | | | | * Add static analysis and improve Makefile * Implement hints from static code analysis
* reformat using gofmtpFlorian Fischer2025-01-271-2/+2
|
* intermediate commitFlorian Fischer2025-01-271-33/+203
| | | | Implement actions and multiple ui widgets
* implement unit movementFlorian Fischer2025-01-271-20/+106
|
* intermediate commitFlorian Fischer2025-01-271-0/+58