module Oid::PositionListener::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_position_listener : Entitas::Entity
Add a
Oid::PositionListener
to the entity. -
#add_component_position_listener(**args) : Entitas::Entity
Add a
Oid::PositionListener
to the entity. -
#add_position_listener(value : Set(Oid::Components::Position::Listener) = Set(::Oid::Components::Position::Listener).new) : Entitas::Entity
Add a
Oid::PositionListener
to the entity. -
#del_component_position_listener : Entitas::Entity
Delete
Oid::PositionListener
from the entity. -
#del_position_listener : Entitas::Entity
Delete
Oid::PositionListener
from the entity. -
#get_component_position_listener : Oid::PositionListener
Will return the component that is a
Oid::PositionListener
or raise -
#has_component_position_listener? : Bool
Will return true if the entity has an component
Oid::PositionListener
or false if it does not -
#has_position_listener? : Bool
Will return true if the entity has an component
Oid::PositionListener
or false if it does not -
#position_listener : Oid::PositionListener
Will return the component that is a
Oid::PositionListener
or raise -
#position_listener? : Bool
Alias.
-
#remove_component_position_listener
Append.
-
#remove_position_listener
Append.
-
#replace_component_position_listener(component : Oid::PositionListener)
Append.
-
#replace_component_position_listener(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_position_listener(value : Set(Oid::Components::Position::Listener))
Will replace the current component with the new one generated from the provided arguments
-
#replace_position_listener(component : Oid::PositionListener)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::PositionListener
to the entity. Returns self
to allow chainables
entity.add_component_position_listener
Add a Oid::PositionListener
to the entity. Returns self
to allow chainables
entity.add_component_position_listener
Add a Oid::PositionListener
to the entity. Returns self
to allow chainables
entity.add_position_listener(1)
Delete Oid::PositionListener
from the entity. Returns self
to allow chainables
entity.del_position_listener
entity.position_listener # => nil
Delete Oid::PositionListener
from the entity. Returns self
to allow chainables
entity.del_position_listener
entity.position_listener # => nil
Will return the component that is a Oid::PositionListener
or raise
Will return true if the entity has an component Oid::PositionListener
or false if it does not
Will return true if the entity has an component Oid::PositionListener
or false if it does not
Will return the component that is a Oid::PositionListener
or raise
Append. Alias for #replace_position_listener
Will replace the current component with the new one generated from the provided arguments
entity.replace_position_listener
entity.get_position_listener # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_position_listener(value: 1)
entity.get_position_listener # => (new_comp)
or
entity.replace_position_listener(1)
entity.get_position_listener # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_position_listener(new_comp)
entity.get_position_listener # => (new_comp)