aboutsummaryrefslogtreecommitdiff
path: root/go/game
Commit message (Collapse)AuthorAgeFilesLines
...
* prompt the user to order its triggersFlorian Fischer2025-08-204-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-08-203-1/+159
|
* remove unused members and make EotEffects privateFlorian Fischer2025-08-201-7/+4
|
* implement equipment with next unit play optionFlorian Fischer2025-08-208-53/+82
| | | | Also make more state methods private.
* implement playTargets for tentacleSlapImpl to fix segfaultFlorian Fischer2025-08-201-0/+2
|
* only pop an action if all players have passed priorityFlorian Fischer2025-08-201-1/+2
|
* reset an action's targets after broadcasting its resolutionFlorian Fischer2025-08-201-5/+7
|
* intermediate commitFlorian Fischer2025-08-2018-116/+612
| | | | | | | | | | | * 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-08-202-9/+39
|
* the tile of destroyed permanents are no longer resetFlorian Fischer2025-08-201-2/+2
| | | | Fixes: 8acaebb8
* intermeditae commitFlorian Fischer2025-08-208-41/+196
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* validate equip and switch actionsFlorian Fischer2025-08-201-1/+40
|
* implement equip actionFlorian Fischer2025-08-203-10/+96
|
* use prompt for target selection of all actionsFlorian Fischer2025-08-201-6/+25
|
* implement targets candidates for hand cardsFlorian Fischer2025-08-202-10/+20
|
* export less methodsFlorian Fischer2025-08-2014-122/+120
|
* implement unit and artifact switch actionFlorian Fischer2025-08-205-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-08-201-2/+6
|
* client: use only the currently available actions in the action choiceFlorian Fischer2025-08-203-6/+24
|
* fix Wandering AI NPE for piled unitsFlorian Fischer2025-08-201-1/+1
|
* replace Fatalf with PanicfFlorian Fischer2025-08-2016-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-08-205-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-08-205-10/+148
| | | | | * Add more TODOs * Implement permanents granting more spawn tiles
* intermediate commitFlorian Fischer2025-08-2016-307/+591
|
* add sealed activity to select a starting deckFlorian Fischer2025-08-203-3/+59
|
* improve state barFlorian Fischer2025-08-201-0/+15
|
* remove card from hand when declaring a play actionFlorian Fischer2025-08-202-2/+3
|
* clear pile when dropping itFlorian Fischer2025-08-201-1/+1
|
* add dummy player to unit testsFlorian Fischer2025-08-201-3/+6
|
* intermediate commitFlorian Fischer2025-08-206-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-08-202-33/+104
|
* fix unit onPile hook argument forwardingFlorian Fischer2025-08-201-1/+1
|
* implement most of nautics cardsFlorian Fischer2025-08-202-16/+112
|
* kraken: implement suprise!Florian Fischer2025-08-202-11/+31
|
* add Contains check for PileOfCardsFlorian Fischer2025-08-201-0/+9
|
* fix card IsPermanentFlorian Fischer2025-08-201-3/+3
|
* fix artifact IsDestroyed for non solid artifactsFlorian Fischer2025-08-201-1/+1
|
* intermediate commitFlorian Fischer2025-08-2016-169/+561
| | | | adding area effects and hooks for permanents entering and leaving tiles
* add simple spell supportFlorian Fischer2025-08-204-0/+21
|
* fix some warnings reported by golang-ciFlorian Fischer2025-08-206-9/+7
|
* improve permanent pile supportFlorian Fischer2025-08-209-26/+92
| | | | | | * 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
* support crewingFlorian Fischer2025-08-208-26/+178
| | | | | | * Introduce new callback for leaving a pile without beeing dropped * Fix equipment contrsuctor * Implement attack inheritance
* fix format strings and run make fmtFlorian Fischer2025-08-203-18/+18
|
* introduce state-based actionFlorian Fischer2025-08-202-12/+15
| | | | | | | | State-based action are executed anytime a action resolved to handle events caused by the game state. Currently state-based actions only destroy unit with more damage than health.
* add distance > 0 assertionFlorian Fischer2025-08-201-0/+4
|
* move unit upkeep code to Unit onUpkeep hookFlorian Fischer2025-08-202-2/+5
|
* s/constrain/constraint/Florian Fischer2025-08-201-61/+61
|
* fix IsValidAttack unit type assertionFlorian Fischer2025-08-201-1/+1
|
* fix ai full action target selectionFlorian Fischer2025-08-201-4/+7
| | | | Only full actions with exactly one target were supported.
* change attack action target to 'attackable enemy permanent'Florian Fischer2025-08-202-3/+62
| | | | Implement attackable constraint.