aboutsummaryrefslogtreecommitdiff
path: root/go/game/card.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-05 23:14:52 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:47 +0100
commitd730296ee2461b6fed08d60b7f734ac3ec05081f (patch)
treeb38cb3e133930861e95197efd0c6804865a8e1c7 /go/game/card.go
parent1a2ee6899d8243c5f55f48fe48ef73f3f2507e35 (diff)
downloadmuhqs-game-d730296ee2461b6fed08d60b7f734ac3ec05081f.tar.gz
muhqs-game-d730296ee2461b6fed08d60b7f734ac3ec05081f.zip
add simple spell support
Diffstat (limited to 'go/game/card.go')
-rw-r--r--go/game/card.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/go/game/card.go b/go/game/card.go
index 81464cce..b1d913a8 100644
--- a/go/game/card.go
+++ b/go/game/card.go
@@ -76,6 +76,7 @@ type cardImplementation interface {
fullActions(*Unit) []*FullAction
freeActions(Permanent) []*FreeAction
+ onPlay(*State, *Player, *Targets)
onPile(Permanent)
onUnpile(Permanent)
onDrop(Permanent)
@@ -90,6 +91,7 @@ type cardImplementationBase struct{}
func (*cardImplementationBase) spawnTiles(*State, *Player) []*Tile { return nil }
func (*cardImplementationBase) fullActions(*Unit) []*FullAction { return nil }
func (*cardImplementationBase) freeActions(Permanent) []*FreeAction { return nil }
+func (*cardImplementationBase) onPlay(*State, *Player, *Targets) {}
func (*cardImplementationBase) onPile(Permanent) {}
func (*cardImplementationBase) onUnpile(Permanent) {}
func (*cardImplementationBase) onDrop(Permanent) {}