package
0.0.0-20220731194155-2379a7fc364b
Repository: https://github.com/verath/archipelago.git
Documentation: pkg.go.dev

# Functions

CreateDummyGameEmpty creates an empty 9x9 board.
CreateDummyGameSimple Creates a 9x9 board with 3 islands: * (0,0) - player 1 island * (8,8) - player 2 island * (4,4) - neutral island * (0,8) - neutral island All starting with a strength of 10 and a growth interval of 1/second.
IsGameOverEvent tests if an event is a game over event.
NewAirplane creates a new Airplane, starting at origin, targeting the destination Island.
NewArmy creates a new Army with the provided owner and strength.
NewEventGameOver creates a new EventGameOver with the WinnerID of the specified player, or InvalidID as WinnerID if winner is nil.
NewGameBuilder creates a new GameBuilder with initial values.
NewIllegalActionError returning a new IllegalActionError wrapping the provided error, or nil if the provided error was nil.
NewIsland creates a new Island from the provided values, automatically choosing an ID.
NewIslandWithID creats a new Island from the provided values.
NewPlayer creates a new Player with a new generated ID.
NextModelID returns a unique id.

# Constants

AirplaneDefaultSpeed is the default speed of an airplane [tiles/ns].
Alive is when still alive in the game.
Dead is when dead and will remain dead.
InvalidID represents an invalid model ID, guaranteed to never match the ID of any entry.
IslandGrowthCap is the army size where the island army stops growing, without factoring in the island size.
IslandGrowthInterval is the interval between army size growth, without factoring in the island size.
Different sizes of islands.
Different sizes of islands.
Different sizes of islands.
Different sizes of islands.
LeftGame is when the Player has left the game.
PendingRevival is when dead, but may be revived.

# Structs

ActionCheckGameOver is an action for triggering a check for if the game is over.
ActionForceGameOver is an action for triggering an unconditional GameOver event with no winner.
ActionTick is an action that performs a tick (i.e.
Airplane represents an airplane in the game model.
Army is a representation of an Army owned by a player.
Coordinate is an (x, y) coordinate, representing a position on the game "board".
EventGameOver is the Event representing game over.
EventGameStart is the game start event.
EventTick is the game tick event.
FloatCoordinate is an (x, y) coordinate, approximately representing a position on the game "board".
Game represents a game instance, and acts as a container for other game models associated to the same game instance.
GameBuilder implements a builder patter for creating a new Game instance.
No description provided by the author
Island represents an Island in the game.
Player represents a player in the game model.
PlayerActionLaunch is a player action for launching an airplane from an island to another island.
PlayerActionLeave is a player action for leaving the game.
PlayerEventGameOver is the player-specific game over event.
PlayerEventGameStart is the player-specific game start event.
PlayerEventTick is the player-specific game tick event.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

Distinct types for various entries in the game model.
Distinct types for various entries in the game model.
ID is the type used as ID for all models.
Distinct types for various entries in the game model.
IslandSize is a type for size factors of an island, between 0.0 and 1.0.
Distinct types for various entries in the game model.
A PlayerState represents the current exclusive state of a Player.