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
has_enemies?(BattleCity.Context.t(), BattleCity.Tank.t()) :: boolean()
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
Specs
handle_move(t(), BattleCity.Context.t(), BattleCity.Tank.t()) :: callback_result()
Specs
handle_shoot(t(), BattleCity.Context.t(), BattleCity.Tank.t()) :: callback_result()
Specs
name() :: binary()