summaryrefslogtreecommitdiff
path: root/engine/card/attack.go
blob: d05d44afded7b0b135cf6bdca067d13ad4d814bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package card

import (
	"sakura/engine"
	"sakura/engine/pool"
)

type Attack struct {
	*engine.Card

	MinDistance RangeValue
	MaxDistance RangeValue

	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)
}