diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-01 20:09:28 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:46:38 +0200 |
| commit | 8e0ee56128d12bc101b487cdc696abc85051a5f8 (patch) | |
| tree | 7d83f75c8dffdcd0d8c2ac3cfcd054266b083f44 /go/game/unit.go | |
| parent | 2e2ad2edb01191dd4844768df883e7ef8ceec846 (diff) | |
| download | muhqs-game-8e0ee56128d12bc101b487cdc696abc85051a5f8.tar.gz muhqs-game-8e0ee56128d12bc101b487cdc696abc85051a5f8.zip | |
add equipments and pile hooks
Diffstat (limited to 'go/game/unit.go')
| -rw-r--r-- | go/game/unit.go | 12 |
1 files changed, 12 insertions, 0 deletions
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 + } +} |
