aboutsummaryrefslogtreecommitdiff
path: root/go/game/unit.go
Commit message (Collapse)AuthorAgeFilesLines
* add support for flexible attacksFlorian Fischer2025-08-051-6/+23
|
* remove paralysis marks debug outputFlorian Fischer2025-07-301-1/+0
|
* initialize units with an available street actionFlorian Fischer2025-07-301-0/+1
|
* support unit state marksFlorian Fischer2025-07-281-3/+17
|
* add boss type as unit specializationFlorian Fischer2025-07-241-1/+1
|
* support street actionsFlorian Fischer2025-07-241-5/+11
|
* do not pass the map through the Attackable* function familyFlorian Fischer2025-07-241-6/+7
|
* do not consider houses as attackable tiles for ranged combatFlorian Fischer2025-07-241-1/+15
|
* add unit assertionFlorian Fischer2025-07-221-0/+7
|
* implement house tile effectFlorian Fischer2025-07-221-5/+0
|
* detect end of unit AI actions and tap the unitFlorian Fischer2025-07-221-0/+5
|
* introduce game.State interface abstractionFlorian Fischer2025-01-271-2/+2
| | | | | This allows to not use the internal game state directly from client code.
* fix available unit actionsFlorian Fischer2025-01-271-15/+21
|
* only generate ArtifactMoveActions if the switched positions are suitableFlorian Fischer2025-01-271-1/+4
|
* implment upkeep costs using ResourceCostsFlorian Fischer2025-01-271-5/+5
|
* intermediate commitFlorian Fischer2025-01-271-28/+10
| | | | | | | | | | | * 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 equip actionFlorian Fischer2025-01-271-0/+27
|
* export less methodsFlorian Fischer2025-01-271-11/+8
|
* implement unit and artifact switch actionFlorian Fischer2025-01-271-6/+7
| | | | | | | | | | 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
* client: use only the currently available actions in the action choiceFlorian Fischer2025-01-271-2/+20
|
* replace Fatalf with PanicfFlorian Fischer2025-01-271-1/+1
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* fix ai NPE when selecting a unit where to spawn frost pylonFlorian Fischer2025-01-271-12/+3
| | | | | The NPE is caused by any piled permanent with which TilesInRange is called.
* intermediate commitFlorian Fischer2025-01-271-0/+20
| | | | | | | | | | | | * 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-2/+15
|
* fix unit onPile hook argument forwardingFlorian Fischer2025-01-271-1/+1
|
* intermediate commitFlorian Fischer2025-01-271-49/+1
| | | | | | * implement most of the kraken cards * unify permanent marks * add state based actions hook for card implementations
* intermediate commitFlorian Fischer2025-01-271-8/+4
| | | | adding area effects and hooks for permanents entering and leaving tiles
* improve permanent pile supportFlorian Fischer2025-01-271-2/+17
| | | | | | * 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-01-271-9/+47
| | | | | | * Introduce new callback for leaving a pile without beeing dropped * Fix equipment contrsuctor * Implement attack inheritance
* move unit upkeep code to Unit onUpkeep hookFlorian Fischer2025-01-271-0/+4
|
* change unit attack representation and implement swordFlorian Fischer2025-01-271-7/+5
|
* add equipments and pile hooksFlorian Fischer2025-01-271-0/+12
|
* add support for additional base actionsFlorian Fischer2025-01-271-4/+18
|
* intermediate commitFlorian Fischer2025-01-271-23/+62
|
* intermediate commitFlorian Fischer2025-01-271-24/+20
|
* intermeditae commitFlorian Fischer2025-01-271-13/+20
|
* intermediate commitFlorian Fischer2025-01-271-43/+41
|
* intermediate commitFlorian Fischer2025-01-271-9/+16
|
* reformat using gofmtpFlorian Fischer2025-01-271-1/+2
|
* intermediate commitFlorian Fischer2025-01-271-13/+87
| | | | Implement actions and multiple ui widgets
* implement unit movementFlorian Fischer2025-01-271-0/+89