blob: a07cf8a907dc4123f26dea2403eb5f2385756eec (
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
|
package card
import (
"sakura/engine"
"sakura/engine/pool"
)
type Attack struct {
*engine.Card
*Range
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)
}
|