BattleCity.PowerUp behaviour (battle_city v0.1.6) View Source
PowerUp
Link to this section Summary
Link to this section Types
Specs
t() :: %BattleCity.PowerUp{
__callbacks__: [BattleCity.ContextCallback.t()],
__module__: module(),
duration: duration(),
id: BattleCity.id(),
position: BattleCity.Position.t()
}
Link to this section Functions
Specs
add(BattleCity.Tank.t(), t()) :: BattleCity.Tank.t()
Link to this section Callbacks
Specs
Specs
handle_off(BattleCity.Context.t(), BattleCity.Tank.t()) :: BattleCity.invoke_tank_result()
Specs
handle_on(BattleCity.Context.t(), BattleCity.Tank.t()) :: BattleCity.invoke_tank_result()