iigointernal

package
v0.0.0-...-95be186 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEnoughInCommonPool

func CheckEnoughInCommonPool(value shared.Resources, gameState *gamestate.GameState) bool

func Contains

func Contains(islandIDSlice []shared.ClientID, islandID shared.ClientID) bool

func DefaultInitLocalHistoryCache

func DefaultInitLocalHistoryCache(depth int) map[int][]shared.Accountability

DefaultInitLocalHistoryCache generates a blank history cache

func DefaultInitLocalSanctionCache

func DefaultInitLocalSanctionCache(depth int) map[int][]shared.Sanction

DefaultInitLocalSanctionCache generates a blank sanction cache

func RunIIGO

func RunIIGO(logger shared.Logger, g *gamestate.GameState, clientMap *map[shared.ClientID]baseclient.Client, gameConf *config.Config) (IIGOSuccessful bool, StatusDescription string)

RunIIGO runs all iigo function in sequence

func WithdrawFromCommonPool

func WithdrawFromCommonPool(value shared.Resources, gameState *gamestate.GameState) (withdrawnAmount shared.Resources, withdrawSuccesful bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL