From 2694d0660ba1aa511f35f0edc3b20bf0a37f5eba Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 1 Feb 2023 20:09:28 +0100 Subject: add equipments and pile hooks --- go/game/unit.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'go/game/unit.go') diff --git a/go/game/unit.go b/go/game/unit.go index 116de413..5d85ff4b 100644 --- a/go/game/unit.go +++ b/go/game/unit.go @@ -223,3 +223,15 @@ func (u *Unit) AvailActions() (actions []Action) { return actions } + +func (u *Unit) OnPile(containing Permanent) { + if _, ok := containing.(*Unit); ok { + // TODO: add attack + } +} + +func (u *Unit) OnDrop(containing Permanent) { + if _, ok := containing.(*Unit); ok { + // TODO: remove attack + } +} -- cgit v1.2.3