aboutsummaryrefslogtreecommitdiff
path: root/go/game/action.go
Commit message (Collapse)AuthorAgeFilesLines
* fix buying cads from store tiles not removing the cardsFlorian Fischer2025-09-031-1/+13
|
* special case the formatting of free and full actions in choiceFlorian Fischer2025-09-031-8/+9
|
* implement the patricianFlorian Fischer2025-09-031-0/+12
|
* fix String method of free action using nil targetsFlorian Fischer2025-09-031-5/+14
|
* switch exp/slices to slices moduleFlorian Fischer2025-09-031-2/+1
|
* fix amount of resource gained for discard 2Florian Fischer2025-08-211-1/+1
|
* fix upkeep cost calculationFlorian Fischer2025-08-211-6/+15
|
* support concessionsFlorian Fischer2025-08-211-2/+25
|
* implement the free discard actionFlorian Fischer2025-08-201-0/+39
|
* include the tile where a pile is dropped in the actionFlorian Fischer2025-08-201-3/+4
|
* triggered actions have no timing restrictionFlorian Fischer2025-08-201-0/+2
|
* improve timing of declared actionsFlorian Fischer2025-08-201-0/+1
|
* make formatFlorian Fischer2025-08-201-1/+2
|
* use any instead of interface{}Florian Fischer2025-08-201-5/+5
|
* minor code improvements reported by golangci-lintFlorian Fischer2025-08-201-4/+5
|
* support street actionsFlorian Fischer2025-08-201-0/+42
|
* minor cleanup removing debug printsFlorian Fischer2025-08-201-3/+3
|
* implement house tile effectFlorian Fischer2025-08-201-1/+1
|
* implement "you control" target constraintFlorian Fischer2025-08-201-3/+3
|
* change move action representationFlorian Fischer2025-08-201-2/+2
|
* add initial support for marshaling actions to plain textFlorian Fischer2025-08-201-0/+61
|
* add new random draft pick actionFlorian Fischer2025-08-201-0/+5
|
* improve interface documentationFlorian Fischer2025-08-201-2/+5
|
* move hand card removal to the play action's costsFlorian Fischer2025-08-201-3/+4
|
* export more information during a draftFlorian Fischer2025-08-201-0/+6
|
* implement simple bot based draftFlorian Fischer2025-08-201-0/+22
|
* introduce game.State interface abstractionFlorian Fischer2025-08-201-60/+89
| | | | | This allows to not use the internal game state directly from client code.
* pass the PlayAction to the cards onPlay implementationsFlorian Fischer2025-08-201-15/+27
| | | | | This is done to propagate the chosen variadic play cost to the card implementation.
* add helper to get the game state from an actionFlorian Fischer2025-08-201-3/+6
|
* implment upkeep costs using ResourceCostsFlorian Fischer2025-08-201-1/+1
|
* add function to create a DeclareTriggeredActionsActionFlorian Fischer2025-08-201-3/+7
|
* support parsing variadic costsFlorian Fischer2025-08-201-4/+4
| | | | | TODO: * select the variadic components * test the costs type
* game: support actions without cost funcFlorian Fischer2025-08-201-4/+9
|
* prompt the user to order its triggersFlorian Fischer2025-08-201-1/+33
| | | | | | | | 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-08-201-0/+23
|
* implement equipment with next unit play optionFlorian Fischer2025-08-201-2/+13
| | | | Also make more state methods private.
* intermediate commitFlorian Fischer2025-08-201-12/+52
| | | | | | | | | | | * 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
* intermeditae commitFlorian Fischer2025-08-201-4/+46
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* implement equip actionFlorian Fischer2025-08-201-8/+55
|
* export less methodsFlorian Fischer2025-08-201-9/+9
|
* implement unit and artifact switch actionFlorian Fischer2025-08-201-22/+60
| | | | | | | | | | 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
* intermediate commitFlorian Fischer2025-08-201-85/+109
|
* remove card from hand when declaring a play actionFlorian Fischer2025-08-201-2/+0
|
* implement TargetSelection and card targetingFlorian Fischer2025-08-201-0/+10
|
* implement most of nautics cardsFlorian Fischer2025-08-201-3/+4
|
* improve permanent pile supportFlorian Fischer2025-08-201-2/+10
| | | | | | * 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
* fix format strings and run make fmtFlorian Fischer2025-08-201-8/+8
|
* change attack action target to 'attackable enemy permanent'Florian Fischer2025-08-201-1/+1
| | | | Implement attackable constraint.
* intermediate commitFlorian Fischer2025-08-201-0/+351