module Oid::Components::Moveable::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_moveable : Entitas::Entity
Add a
Oid::Components::Moveable
to the entity. -
#add_component_moveable(**args) : Entitas::Entity
Add a
Oid::Components::Moveable
to the entity. -
#add_moveable : Entitas::Entity
Add a
Oid::Components::Moveable
to the entity. -
#del_component_moveable : Entitas::Entity
Delete
Oid::Components::Moveable
from the entity. -
#del_moveable : Entitas::Entity
Delete
Oid::Components::Moveable
from the entity. -
#get_component_moveable : Oid::Components::Moveable
Will return the component that is a
Oid::Components::Moveable
or raise -
#has_component_moveable? : Bool
Will return true if the entity has an component
Oid::Components::Moveable
or false if it does not -
#has_moveable? : Bool
Will return true if the entity has an component
Oid::Components::Moveable
or false if it does not -
#moveable : Oid::Components::Moveable
Will return the component that is a
Oid::Components::Moveable
or raise - #moveable=(value : Bool)
-
#moveable? : Bool
Alias.
-
#remove_component_moveable
Append.
-
#remove_moveable
Append.
-
#replace_component_moveable(component : Oid::Components::Moveable)
Append.
-
#replace_component_moveable(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_moveable(component : Oid::Components::Moveable)
Will replace the current component with the new one provided
-
#replace_moveable
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Moveable
to the entity. Returns self
to allow chainables
entity.add_component_moveable
Add a Oid::Components::Moveable
to the entity. Returns self
to allow chainables
entity.add_component_moveable
Add a Oid::Components::Moveable
to the entity. Returns self
to allow chainables
entity.add_moveable
Delete Oid::Components::Moveable
from the entity. Returns self
to allow chainables
entity.del_moveable
entity.moveable # => nil
Delete Oid::Components::Moveable
from the entity. Returns self
to allow chainables
entity.del_moveable
entity.moveable # => nil
Will return the component that is a Oid::Components::Moveable
or raise
Will return true if the entity has an component Oid::Components::Moveable
or false if it does not
Will return true if the entity has an component Oid::Components::Moveable
or false if it does not
Will return the component that is a Oid::Components::Moveable
or raise
Append. Alias for #replace_moveable
Will replace the current component with the new one generated from the provided arguments
entity.replace_moveable
entity.get_moveable # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_moveable(new_comp)
entity.get_moveable # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_moveable
entity.get_moveable # => (new_comp)