aboutsummaryrefslogtreecommitdiff
path: root/go/game
Commit message (Collapse)AuthorAgeFilesLines
...
* add death trigger to flyingDutchmenImplFlorian Fischer2025-01-271-4/+12
|
* add illusionist implementationFlorian Fischer2025-01-271-0/+28
|
* add function to create a DeclareTriggeredActionsActionFlorian Fischer2025-01-271-3/+7
|
* fix trigger ordering for kraken AI always sending PassPriorityFlorian Fischer2025-01-271-2/+7
|
* emit target and death eventsFlorian Fischer2025-01-271-0/+12
|
* add new trigger and event implementationsFlorian Fischer2025-01-271-8/+78
|
* run state based actions before players receive priorityFlorian Fischer2025-01-271-0/+1
|
* make CardPaths a value receiverFlorian Fischer2025-01-271-1/+1
|
* support parsing variadic costsFlorian Fischer2025-01-276-36/+116
| | | | | TODO: * select the variadic components * test the costs type
* add onETB card hookFlorian Fischer2025-01-272-0/+9
|
* improve tile connection detectionFlorian Fischer2025-01-271-26/+13
|
* support special wall, gate and tower tile selectionFlorian Fischer2025-01-271-0/+16
|
* game: support X effects ending with punctuationFlorian Fischer2025-01-271-2/+6
|
* game: support actions without cost funcFlorian Fischer2025-01-271-4/+9
|
* cardImplementations: fix use of wrong nested structFlorian Fischer2025-01-271-18/+12
|
* prompt the user to order its triggersFlorian Fischer2025-01-274-11/+81
| | | | | | | | All TriggeredAction are passed in the wrapper action DeclareTriggeredActionsAction to the controller of the triggers. It is expected to receive an ordered list back from the user again wrapped in a DeclareTriggeredActionsAction. The triggered actions will be declared in from first to last.
* add skeleton for triggers and triggered actionsFlorian Fischer2025-01-273-1/+159
|
* remove unused members and make EotEffects privateFlorian Fischer2025-01-271-7/+4
|
* implement equipment with next unit play optionFlorian Fischer2025-01-278-53/+82
| | | | Also make more state methods private.
* implement playTargets for tentacleSlapImpl to fix segfaultFlorian Fischer2025-01-271-0/+2
|
* only pop an action if all players have passed priorityFlorian Fischer2025-01-271-1/+2
|
* reset an action's targets after broadcasting its resolutionFlorian Fischer2025-01-271-5/+7
|
* 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-2718-116/+610
| | | | | | | | | | | * 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
* implement target disjunction and fix artifact constraintFlorian Fischer2025-01-272-9/+39
|
* the tile of destroyed permanents are no longer resetFlorian Fischer2025-01-271-2/+2
| | | | Fixes: 8acaebb8
* intermeditae commitFlorian Fischer2025-01-278-41/+196
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* fixup! validate equip and switch actionsFlorian Fischer2025-01-271-6/+7
|
* validate equip and switch actionsFlorian Fischer2025-01-271-1/+39
|
* implement equip actionFlorian Fischer2025-01-273-10/+96
|
* use prompt for target selection of all actionsFlorian Fischer2025-01-271-6/+25
|
* implement targets candidates for hand cardsFlorian Fischer2025-01-272-10/+20
|
* export less methodsFlorian Fischer2025-01-2714-122/+120
|
* implement unit and artifact switch actionFlorian Fischer2025-01-275-28/+96
| | | | | | | | | | 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
* do not prompt if there is nothing to buyFlorian Fischer2025-01-271-2/+6
|
* client: use only the currently available actions in the action choiceFlorian Fischer2025-01-273-6/+24
|
* fix Wandering AI NPE for piled unitsFlorian Fischer2025-01-271-1/+1
|
* replace Fatalf with PanicfFlorian Fischer2025-01-2716-39/+39
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* fix ai NPE when selecting a unit where to spawn frost pylonFlorian Fischer2025-01-275-15/+16
| | | | | The NPE is caused by any piled permanent with which TilesInRange is called.
* implement the basics of the rest of the base cardsFlorian Fischer2025-01-275-10/+148
| | | | | * Add more TODOs * Implement permanents granting more spawn tiles
* intermediate commitFlorian Fischer2025-01-2715-145/+299
| | | | | | | | | | | | * 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-2710-218/+348
|
* add sealed activity to select a starting deckFlorian Fischer2025-01-273-3/+59
|
* improve state barFlorian Fischer2025-01-271-0/+15
|
* remove card from hand when declaring a play actionFlorian Fischer2025-01-272-2/+3
|
* clear pile when dropping itFlorian Fischer2025-01-271-1/+1
|
* add dummy player to unit testsFlorian Fischer2025-01-271-3/+6
|
* intermediate commitFlorian Fischer2025-01-276-36/+80
| | | | | | * detect tokens and do not add them to pile of cards * only add spells not already in exile to their owners discard pile * add the played card to onPlay callback
* implement TargetSelection and card targetingFlorian Fischer2025-01-272-33/+104
|
* fix unit onPile hook argument forwardingFlorian Fischer2025-01-271-1/+1
|