aboutsummaryrefslogtreecommitdiff
path: root/go/game/action.go
Commit message (Collapse)AuthorAgeFilesLines
* 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