diff options
Diffstat (limited to 'go/game/cardImplementations.go')
| -rw-r--r-- | go/game/cardImplementations.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index da348fe1..7055fe03 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -32,7 +32,7 @@ func (*advisorImpl) fullActions(u *Unit) []*FullAction { } } } - return []*FullAction{NewFullAction(u, resolvePrototype, "draw 1. exile 1")} + return []*FullAction{newFullAction(u, resolvePrototype, "draw 1. exile 1")} } type missionaryImpl struct{ cardImplementationBase } @@ -49,7 +49,7 @@ func (*missionaryImpl) fullActions(u *Unit) []*FullAction { } } s := u.Controller().gameState - a := NewFullAction(u, resolvePrototype, "put faith ...") + a := newFullAction(u, resolvePrototype, "put faith ...") a.targets = newTargets(newTarget(s, newTargetDesc("unit"), a)) return []*FullAction{a} } @@ -77,7 +77,7 @@ func (*pioneerImpl) fullActions(u *Unit) []*FullAction { return func(s *State) { target := a.Target().sel[0] if artifact, ok := target.(*Artifact); ok { - s.DestroyPermanent(artifact) + s.destroyPermanent(artifact) } else { tile := target.(*Tile) tile.neutralize() @@ -86,7 +86,7 @@ func (*pioneerImpl) fullActions(u *Unit) []*FullAction { } s := u.Controller().gameState - a := NewFullAction(u, resolvePrototype, "neutralize tile or artifact") + a := newFullAction(u, resolvePrototype, "neutralize tile or artifact") // TODO: add target disjunktion 'or' a.targets = newTargets(newTarget(s, newTargetDesc("adjacent tile or artifcat"), a)) return []*FullAction{a} @@ -104,7 +104,7 @@ func (*recruiterImpl) fullActions(u *Unit) []*FullAction { } s := u.Controller().gameState - a := NewFullAction(u, resolvePrototype, "create recruit") + a := newFullAction(u, resolvePrototype, "create recruit") a.targets = newTargets(newTarget(s, newTargetDesc("adjacent tile"), a)) return []*FullAction{a} } @@ -134,7 +134,7 @@ func (*taxCollectorImpl) fullActions(u *Unit) []*FullAction { } } - a := NewFullAction(u, resolvePrototype, "gain 2") + a := newFullAction(u, resolvePrototype, "gain 2") return []*FullAction{a} } @@ -154,7 +154,7 @@ func (*wormtongueImpl) fullActions(u *Unit) []*FullAction { } s := u.Controller().gameState - a := NewFullAction(u, resolvePrototype, "misinform") + a := newFullAction(u, resolvePrototype, "misinform") // TODO: implement player targeting a.targets = newTargets(newTarget(s, newTargetDesc("opponent"), a)) return []*FullAction{a} @@ -204,7 +204,7 @@ func (*fisherImpl) fullActions(u *Unit) []*FullAction { s.AddNewArtifact(NewCard("nautics/fish_trap"), t.Position, u.Controller()) } } - a := NewFullAction(u, resolvePrototype, "create fish trap") + a := newFullAction(u, resolvePrototype, "create fish trap") a.targets = newTargets(newTarget(s, newTargetDesc("adjacent free water tile"), a)) return []*FullAction{a} } @@ -256,7 +256,7 @@ type devourThePoorImpl struct{ cardImplementation } func (*devourThePoorImpl) onPlay(s *State, _ *Card, kraken *Player, _ *Targets) { for _, u := range s.EnemyUnits(kraken) { if u.Card().BuyCost < 7 { - s.DestroyPermanent(u) + s.destroyPermanent(u) } } } @@ -270,7 +270,7 @@ func (i *drownedSailorImpl) onPile(containing Permanent) { i.sailorImpl.onPile func (i *drownedSailorImpl) onUnpile(containing Permanent) { i.sailorImpl.onUnpile(containing) } func (*drownedSailorImpl) onDrop(sailor Permanent) { - sailor.Controller().gameState.DestroyPermanent(sailor) + sailor.Controller().gameState.destroyPermanent(sailor) } // TODO: implement death trigger @@ -301,7 +301,7 @@ func (*frostPylonImpl) spawnTiles(s *State, kraken *Player) (spawns []*Tile) { func (*frostPylonImpl) stateBasedActions(s *State, p Permanent) { if p.Marks(PermanentMarks.Crack) >= 3 { - s.DestroyPermanent(p) + s.destroyPermanent(p) } } |
