From 3d36d1d0254b8aeecc889a2a49cbcced458cbe9c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 25 Feb 2023 23:08:47 +0100 Subject: intermediate commit * 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 --- go/game/card.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/game/card.go') diff --git a/go/game/card.go b/go/game/card.go index 914ccb56..b4bf5ebb 100644 --- a/go/game/card.go +++ b/go/game/card.go @@ -94,7 +94,7 @@ type cardImplementation interface { fullActions(*Unit) []*FullAction freeActions(Permanent) []*FreeAction - playTargets() *TargetDesc + playTargets() TargetDesc stateBasedActions(*State, Permanent) @@ -118,7 +118,7 @@ func (*cardImplementationBase) spawnTiles(*State, *Player) []*Tile { return nil func (*cardImplementationBase) fullActions(*Unit) []*FullAction { return nil } func (*cardImplementationBase) freeActions(Permanent) []*FreeAction { return nil } -func (*cardImplementationBase) playTargets() *TargetDesc { return nil } +func (*cardImplementationBase) playTargets() TargetDesc { return INVALID_TARGET_DESC } func (*cardImplementationBase) stateBasedActions(*State, Permanent) {} -- cgit v1.2.3