aboutsummaryrefslogtreecommitdiff
path: root/go/game/unit.go
Commit message (Collapse)AuthorAgeFilesLines
* introduce game.State interface abstractionFlorian Fischer2025-08-201-2/+2
| | | | | This allows to not use the internal game state directly from client code.
* fix available unit actionsFlorian Fischer2025-08-201-15/+21
|
* only generate ArtifactMoveActions if the switched positions are suitableFlorian Fischer2025-08-201-1/+4
|
* implment upkeep costs using ResourceCostsFlorian Fischer2025-08-201-5/+5
|
* intermediate commitFlorian Fischer2025-08-201-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-08-201-0/+27
|
* export less methodsFlorian Fischer2025-08-201-11/+8
|
* implement unit and artifact switch actionFlorian Fischer2025-08-201-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-08-201-2/+20
|
* replace Fatalf with PanicfFlorian Fischer2025-08-201-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-08-201-12/+3
| | | | | The NPE is caused by any piled permanent with which TilesInRange is called.
* intermediate commitFlorian Fischer2025-08-201-2/+35
|
* fix unit onPile hook argument forwardingFlorian Fischer2025-08-201-1/+1
|
* intermediate commitFlorian Fischer2025-08-201-57/+5
| | | | adding area effects and hooks for permanents entering and leaving tiles
* improve permanent pile supportFlorian Fischer2025-08-201-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-08-201-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-08-201-0/+4
|
* change unit attack representation and implement swordFlorian Fischer2025-08-201-7/+5
|
* add equipments and pile hooksFlorian Fischer2025-08-201-0/+12
|
* add support for additional base actionsFlorian Fischer2025-08-201-4/+18
|
* intermediate commitFlorian Fischer2025-08-201-0/+211