BattleCity.PowerUp behaviour (battle_city v0.1.8) View Source
PowerUp
Link to this section Summary
Link to this section Types
Specs
t() :: %BattleCity.PowerUp{
__callbacks__: [BattleCity.ContextCallback.t()],
__module__: module(),
__ref__: reference(),
duration: duration(),
hidden?: boolean(),
id: BattleCity.id(),
position: BattleCity.Position.t(),
tank_id: BattleCity.id() | nil
}
Link to this section Functions
Specs
add(BattleCity.Context.t(), BattleCity.Tank.t(), t()) :: {:no_srv | :instant | {:later, BattleCity.Context.update_raw_fun()}, BattleCity.Context.t(), BattleCity.Tank.t()}
Specs
remove(BattleCity.Context.t(), BattleCity.Tank.t(), t()) :: {:ok, BattleCity.Context.t(), BattleCity.Tank.t()}
Link to this section Callbacks
Specs
handle_add(BattleCity.Context.t(), BattleCity.Tank.t()) :: power_up_result()
Specs
Specs
handle_remove(BattleCity.Context.t(), BattleCity.Tank.t()) :: power_up_result()