BattleCity.Environment behaviour (battle_city v0.1.6) View Source
Environment
Link to this section Summary
Link to this section Types
Specs
env_object() :: BattleCity.Tank.t() | BattleCity.Bullet.t()
Specs
t() :: %BattleCity.Environment{
__module__: module(),
enter?: boolean(),
health: health(),
id: BattleCity.id(),
position: BattleCity.Position.t(),
raw: binary(),
shape: shape()
}
Link to this section Functions
Specs
copy_rxy(t(), env_object()) :: env_object()
Specs
copy_xy(t(), env_object()) :: env_object()
Specs
enter(t(), env_object()) :: enter_result()
Specs
Specs
leave(t(), env_object()) :: enter_result()
Specs
Link to this section Callbacks
Specs
handle_enter(t(), env_object()) :: enter_result()
Specs
Specs
handle_leave(t(), env_object()) :: enter_result()