BattleCity.Tank.Base behaviour (battle_city v0.1.8) View Source

Base Tank

Link to this section Summary

Link to this section Types

Specs

t() :: %BattleCity.Tank.Base{
  __module__: module(),
  bullet_reinforced?: boolean(),
  bullet_speed: BattleCity.Position.speed(),
  health: BattleCity.Tank.health(),
  level: BattleCity.level(),
  move_speed: BattleCity.Position.speed(),
  points: BattleCity.Tank.points()
}

Link to this section Callbacks

Link to this callback

handle_init(map)

View Source (optional)

Specs

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

Specs

handle_level_up(BattleCity.Tank.t()) :: module()

Specs

new() :: BattleCity.Tank.t()

Specs

new(map()) :: BattleCity.Tank.t()