Islands Engine v0.2.0 Islands.Engine.Island View Source
Link to this section Summary
Link to this section Types
Link to this type
coords()
View Source
coords()
View Source
coords() :: MapSet.t(Islands.Engine.Coord.t())
coords() :: MapSet.t(Islands.Engine.Coord.t())
Link to this type
type()
View Source
type()
View Source
type() :: :atoll | :dot | :l_shape | :s_shape | :square
type() :: :atoll | :dot | :l_shape | :s_shape | :square
Link to this section Functions
Link to this function
forested?(island) View Source
Link to this function
guess(island, guess)
View Source
guess(island, guess)
View Source
guess(t(), Islands.Engine.Coord.t()) :: {:hit, t()} | :miss
guess(t(), Islands.Engine.Coord.t()) :: {:hit, t()} | :miss
Link to this function
new(type, origin)
View Source
new(type, origin)
View Source
new(type(), Islands.Engine.Coord.t()) :: {:ok, t()} | {:error, atom()}
new(type(), Islands.Engine.Coord.t()) :: {:ok, t()} | {:error, atom()}
Link to this function