BattleCity.Stage behaviour (battle_city v0.1.3) View Source

Stage

Link to this section Summary

Link to this section Types

Specs

bots() :: [{atom(), integer()}]

Specs

map_data() :: %{
  required(BattleCity.Position.coordinate()) => BattleCity.Environment.t()
}

Specs

t() :: %BattleCity.Stage{
  __module__: module(),
  bots: bots(),
  difficulty: integer(),
  map: map_data(),
  name: binary()
}

Link to this section Callbacks

Link to this callback

handle_init(map)

View Source (optional)

Specs

handle_init(map()) :: map() | {:error, :atom}

Specs

name() :: binary()