diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-01 20:09:28 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:45 +0100 |
| commit | 2694d0660ba1aa511f35f0edc3b20bf0a37f5eba (patch) | |
| tree | eba68bef79d5f9af70af62849da940aae323938e /go/game/unit.go | |
| parent | d3d0c2242004ea02ac29502b1a7d46ed3d0b98e9 (diff) | |
| download | muhqs-game-2694d0660ba1aa511f35f0edc3b20bf0a37f5eba.tar.gz muhqs-game-2694d0660ba1aa511f35f0edc3b20bf0a37f5eba.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 + } +} |
