aboutsummaryrefslogtreecommitdiff
path: root/go/game/unit.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-01 20:09:28 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:45 +0100
commit2694d0660ba1aa511f35f0edc3b20bf0a37f5eba (patch)
treeeba68bef79d5f9af70af62849da940aae323938e /go/game/unit.go
parentd3d0c2242004ea02ac29502b1a7d46ed3d0b98e9 (diff)
downloadmuhqs-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.go12
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
+ }
+}