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

Ai

Link to this section Summary

Link to this section Types

Specs

t() :: %BattleCity.Ai{
  __module__: module(),
  id: BattleCity.id(),
  interval: integer(),
  loop: boolean(),
  move_event: maybe_event(),
  pid: pid(),
  private: term(),
  shoot_event: maybe_event(),
  slug: BattleCity.slug()
}

Link to this section Functions

Specs

Specs

move(t(), BattleCity.Context.t(), maybe_tank()) :: handle_result()

Specs

shoot(t(), BattleCity.Context.t(), maybe_tank()) :: handle_result()

Link to this section Callbacks

Link to this callback

handle_move(t, arg2, arg3)

View Source

Specs

handle_move(t(), BattleCity.Context.t(), BattleCity.Tank.t()) ::
  callback_result()
Link to this callback

handle_shoot(t, arg2, arg3)

View Source

Specs

handle_shoot(t(), BattleCity.Context.t(), BattleCity.Tank.t()) ::
  callback_result()

Specs

name() :: binary()