BattleCity.Tank (battle_city v0.1.3) View Source

Tank

Link to this section Summary

Link to this section Types

Specs

health() :: 1..10

Specs

points() :: integer()

Specs

t() :: %BattleCity.Tank{
  __callbacks__: [BattleCity.Callback.t()],
  __module__: module(),
  changed?: boolean(),
  dead?: boolean(),
  enemy?: boolean(),
  freezed?: boolean(),
  health: health(),
  hidden?: boolean(),
  id: BattleCity.id(),
  lifes: integer(),
  meta: BattleCity.Tank.Base.t(),
  moving?: boolean(),
  position: BattleCity.Position.t(),
  reason: BattleCity.reason(),
  score: integer(),
  shield?: boolean(),
  shootable?: boolean(),
  speed: BattleCity.Position.speed()
}

Link to this section Functions

Specs

hit(t(), BattleCity.Bullet.t()) :: t()