diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-06-25 11:11:36 -0500 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:21 +0200 |
| commit | 9a4b12e6d388bb14a3c1b6343197f63a362709f4 (patch) | |
| tree | 1f0a51eefa1361daf38c66500f7fd013cefd459a /go | |
| parent | e8355ce66286c76deb7a2b1dc1d98131b12f234b (diff) | |
| download | muhqs-game-9a4b12e6d388bb14a3c1b6343197f63a362709f4.tar.gz muhqs-game-9a4b12e6d388bb14a3c1b6343197f63a362709f4.zip | |
improve interface documentation
Diffstat (limited to 'go')
| -rw-r--r-- | go/game/action.go | 7 |
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 } |
