module Oid::Components::Mover::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_mover : Entitas::Entity
Add a
Oid::Components::Mover
to the entity. -
#add_component_mover(**args) : Entitas::Entity
Add a
Oid::Components::Mover
to the entity. -
#add_mover : Entitas::Entity
Add a
Oid::Components::Mover
to the entity. -
#del_component_mover : Entitas::Entity
Delete
Oid::Components::Mover
from the entity. -
#del_mover : Entitas::Entity
Delete
Oid::Components::Mover
from the entity. -
#get_component_mover : Oid::Components::Mover
Will return the component that is a
Oid::Components::Mover
or raise -
#has_component_mover? : Bool
Will return true if the entity has an component
Oid::Components::Mover
or false if it does not -
#has_mover? : Bool
Will return true if the entity has an component
Oid::Components::Mover
or false if it does not -
#mover : Oid::Components::Mover
Will return the component that is a
Oid::Components::Mover
or raise - #mover=(value : Bool)
-
#mover? : Bool
Alias.
-
#remove_component_mover
Append.
-
#remove_mover
Append.
-
#replace_component_mover(component : Oid::Components::Mover)
Append.
-
#replace_component_mover(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_mover(component : Oid::Components::Mover)
Will replace the current component with the new one provided
-
#replace_mover
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Mover
to the entity. Returns self
to allow chainables
entity.add_component_mover
Add a Oid::Components::Mover
to the entity. Returns self
to allow chainables
entity.add_component_mover
Add a Oid::Components::Mover
to the entity. Returns self
to allow chainables
entity.add_mover
Delete Oid::Components::Mover
from the entity. Returns self
to allow chainables
entity.del_mover
entity.mover # => nil
Delete Oid::Components::Mover
from the entity. Returns self
to allow chainables
entity.del_mover
entity.mover # => nil
Will return the component that is a Oid::Components::Mover
or raise
Will return true if the entity has an component Oid::Components::Mover
or false if it does not
Will return true if the entity has an component Oid::Components::Mover
or false if it does not
Will return the component that is a Oid::Components::Mover
or raise
Will replace the current component with the new one generated from the provided arguments
entity.replace_mover
entity.get_mover # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_mover(new_comp)
entity.get_mover # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_mover
entity.get_mover # => (new_comp)