From 7db18a534591360e8ca2b38ad87752fdd56f33be Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 25 Jun 2025 11:11:36 -0500 Subject: improve interface documentation --- go/game/action.go | 7 +++++-- 1 file 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 } -- cgit v1.2.3