BattleCity.PowerUp behaviour (battle_city v0.1.8) View Source

PowerUp

Link to this section Summary

Link to this section Types

Specs

t() :: %BattleCity.PowerUp{
  __callbacks__: [BattleCity.ContextCallback.t()],
  __module__: module(),
  __ref__: reference(),
  duration: duration(),
  hidden?: boolean(),
  id: BattleCity.id(),
  position: BattleCity.Position.t(),
  tank_id: BattleCity.id() | nil
}

Link to this section Functions

Link to this section Callbacks

Specs

handle_add(BattleCity.Context.t(), BattleCity.Tank.t()) :: power_up_result()
Link to this callback

handle_init(map)

View Source (optional)

Specs

handle_init(map()) :: map() | {:error, :atom}
Link to this callback

handle_remove(arg1, arg2)

View Source (optional)

Specs

handle_remove(BattleCity.Context.t(), BattleCity.Tank.t()) :: power_up_result()