aboutsummaryrefslogtreecommitdiff
path: root/go/game/action.go
Commit message (Collapse)AuthorAgeFilesLines
* make formatFlorian Fischer2025-07-301-1/+2
|
* use any instead of interface{}Florian Fischer2025-07-301-5/+5
|
* minor code improvements reported by golangci-lintFlorian Fischer2025-07-301-4/+5
|
* support street actionsFlorian Fischer2025-07-241-0/+42
|
* minor cleanup removing debug printsFlorian Fischer2025-07-241-3/+3
|
* implement house tile effectFlorian Fischer2025-07-221-1/+1
|
* implement "you control" target constraintFlorian Fischer2025-07-221-3/+3
|
* change move action representationFlorian Fischer2025-07-191-2/+2
|
* add initial support for marshaling actions to plain textFlorian Fischer2025-07-061-0/+61
|
* add new random draft pick actionFlorian Fischer2025-07-061-0/+5
|
* improve interface documentationFlorian Fischer2025-07-031-2/+5
|
* move hand card removal to the play action's costsFlorian Fischer2025-07-031-3/+4
|
* export more information during a draftFlorian Fischer2025-07-031-0/+6
|
* implement simple bot based draftFlorian Fischer2025-05-011-0/+22
|
* introduce game.State interface abstractionFlorian Fischer2025-01-271-60/+89
| | | | | This allows to not use the internal game state directly from client code.
* pass the PlayAction to the cards onPlay implementationsFlorian Fischer2025-01-271-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-01-271-3/+6
|
* implment upkeep costs using ResourceCostsFlorian Fischer2025-01-271-1/+1
|
* add function to create a DeclareTriggeredActionsActionFlorian Fischer2025-01-271-3/+7
|
* support parsing variadic costsFlorian Fischer2025-01-271-4/+4
| | | | | TODO: * select the variadic components * test the costs type
* game: support actions without cost funcFlorian Fischer2025-01-271-4/+9
|
* prompt the user to order its triggersFlorian Fischer2025-01-271-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-01-271-0/+23
|
* implement equipment with next unit play optionFlorian Fischer2025-01-271-2/+13
| | | | Also make more state methods private.
* intermediate commitFlorian Fischer2025-01-271-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-01-271-4/+46
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* implement equip actionFlorian Fischer2025-01-271-8/+55
|
* export less methodsFlorian Fischer2025-01-271-9/+9
|
* implement unit and artifact switch actionFlorian Fischer2025-01-271-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-01-271-44/+33
| | | | | | | | | | | | * 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-68/+103
|
* remove card from hand when declaring a play actionFlorian Fischer2025-01-271-2/+0
|
* implement TargetSelection and card targetingFlorian Fischer2025-01-271-0/+10
|
* implement most of nautics cardsFlorian Fischer2025-01-271-3/+4
|
* improve permanent pile supportFlorian Fischer2025-01-271-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-01-271-8/+8
|
* change attack action target to 'attackable enemy permanent'Florian Fischer2025-01-271-1/+1
| | | | Implement attackable constraint.
* intermediate commitFlorian Fischer2025-01-271-111/+192
|
* intermediate commitFlorian Fischer2025-01-271-2/+0
|
* intermediate commitFlorian Fischer2025-01-271-25/+34
|
* intermeditae commitFlorian Fischer2025-01-271-32/+78
|
* intermediate commitFlorian Fischer2025-01-271-24/+45
|
* intermediate commitFlorian Fischer2025-01-271-24/+87
|
* intermediate commitFlorian Fischer2025-01-271-3/+130
| | | | Implement actions and multiple ui widgets
* intermediate commitFlorian Fischer2025-01-271-0/+6