aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/action.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/go/game/action.go b/go/game/action.go
index f0dc5ca8..62703180 100644
--- a/go/game/action.go
+++ b/go/game/action.go
@@ -27,16 +27,19 @@ type (
)
type Action interface {
- Source() interface{}
+ Source() any
Controller() *Player
Speed() ActionSpeed
GameState() *LocalState
Targets() *Targets
- Target() *Target // Shortcut for to select the first target
+ // Shortcut for the first target
+ Target() *Target
NeedsActionCostChoice() bool
CheckTargets(*LocalState) error
+ // Check if an actions play costs can be payed and if so pays them
PayCosts(s *LocalState) bool
+ // Apply an actions effects to the game state
resolve(s *LocalState)
String() string
}