summaryrefslogtreecommitdiff
path: root/engine/card/attack.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-09-14 19:48:36 +0200
committerewy <ewy0@protonmail.com>2026-09-14 19:48:36 +0200
commit899ef7448222f0d087c194b3379b702f8dd2ff8c (patch)
tree8c2b508bb4d01236c7f582e4eee91fd178d09670 /engine/card/attack.go
parentc69e6c0770359e2febafcf487eb21c4aa608c3e9 (diff)
add server and websocket comms
Diffstat (limited to 'engine/card/attack.go')
-rw-r--r--engine/card/attack.go26
1 files changed, 23 insertions, 3 deletions
diff --git a/engine/card/attack.go b/engine/card/attack.go
index 19ad196..d05d44a 100644
--- a/engine/card/attack.go
+++ b/engine/card/attack.go
@@ -1,11 +1,31 @@
package card
+import (
+ "sakura/engine"
+ "sakura/engine/pool"
+)
+
type Attack struct {
- *Card
+ *engine.Card
MinDistance RangeValue
MaxDistance RangeValue
- AuraDamage DamageValue
- HealthDamage DamageValue
+ AuraDamage DamageValue
+ LifeDamage DamageValue
+
+ Unreactable bool
+}
+
+func (a *Attack) Attack() *Attack {
+ return a
+}
+
+func (a *Attack) Do(g *engine.Game, to *pool.Pool) {
+}
+
+type IsAttack interface {
+ Attack() *Attack
+ Prepare(g *engine.Game)
+ Do(g *engine.Game, to *pool.Pool)
}