module Oid::Components::Move::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_move : Entitas::Entity
Add a
Oid::Components::Move
to the entity. -
#add_component_move(**args) : Entitas::Entity
Add a
Oid::Components::Move
to the entity. -
#add_move(**args) : Entitas::Entity
Add a
Oid::Components::Move
to the entity. -
#del_component_move : Entitas::Entity
Delete
Oid::Components::Move
from the entity. -
#del_move : Entitas::Entity
Delete
Oid::Components::Move
from the entity. -
#get_component_move : Oid::Components::Move
Will return the component that is a
Oid::Components::Move
or raise -
#has_component_move? : Bool
Will return true if the entity has an component
Oid::Components::Move
or false if it does not -
#has_move? : Bool
Will return true if the entity has an component
Oid::Components::Move
or false if it does not -
#move : Oid::Components::Move
Will return the component that is a
Oid::Components::Move
or raise -
#move? : Bool
Alias.
-
#remove_component_move
Append.
-
#remove_move
Append.
-
#replace_component_move(component : Oid::Components::Move)
Append.
-
#replace_component_move(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_move(component : Oid::Components::Move)
Will replace the current component with the new one provided
-
#replace_move(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Move
to the entity. Returns self
to allow chainables
entity.add_component_move
Add a Oid::Components::Move
to the entity. Returns self
to allow chainables
entity.add_component_move
Add a Oid::Components::Move
to the entity. Returns self
to allow chainables
entity.add_move
Delete Oid::Components::Move
from the entity. Returns self
to allow chainables
entity.del_move
entity.move # => nil
Delete Oid::Components::Move
from the entity. Returns self
to allow chainables
entity.del_move
entity.move # => nil
Will return the component that is a Oid::Components::Move
or raise
Will return true if the entity has an component Oid::Components::Move
or false if it does not
Will return true if the entity has an component Oid::Components::Move
or false if it does not
Will return the component that is a Oid::Components::Move
or raise
Will replace the current component with the new one generated from the provided arguments
entity.replace_move
entity.get_move # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_move(new_comp)
entity.get_move # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_move
entity.get_move # => (new_comp)