module Oid::Components::KeyDown::Helper
Defined in:
Instance Method Summary
-
#add_component_key_down : Entitas::Entity
Add a
Oid::Components::KeyDown
to the entity. -
#add_component_key_down(**args) : Entitas::Entity
Add a
Oid::Components::KeyDown
to the entity. -
#add_key_down : Entitas::Entity
Add a
Oid::Components::KeyDown
to the entity. -
#del_component_key_down : Entitas::Entity
Delete
Oid::Components::KeyDown
from the entity. -
#del_key_down : Entitas::Entity
Delete
Oid::Components::KeyDown
from the entity. -
#get_component_key_down : Oid::Components::KeyDown
Will return the component that is a
Oid::Components::KeyDown
or raise -
#has_component_key_down? : Bool
Will return true if the entity has an component
Oid::Components::KeyDown
or false if it does not -
#has_key_down? : Bool
Will return true if the entity has an component
Oid::Components::KeyDown
or false if it does not -
#key_down : Oid::Components::KeyDown
Will return the component that is a
Oid::Components::KeyDown
or raise - #key_down=(value : Bool)
-
#key_down? : Bool
Alias.
-
#remove_component_key_down
Append.
-
#remove_key_down
Append.
-
#replace_component_key_down(component : Oid::Components::KeyDown)
Append.
-
#replace_component_key_down(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_key_down(component : Oid::Components::KeyDown)
Will replace the current component with the new one provided
-
#replace_key_down
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::KeyDown
to the entity. Returns self
to allow chainables
entity.add_component_key_down
Add a Oid::Components::KeyDown
to the entity. Returns self
to allow chainables
entity.add_component_key_down
Add a Oid::Components::KeyDown
to the entity. Returns self
to allow chainables
entity.add_key_down
Delete Oid::Components::KeyDown
from the entity. Returns self
to allow chainables
entity.del_key_down
entity.key_down # => nil
Delete Oid::Components::KeyDown
from the entity. Returns self
to allow chainables
entity.del_key_down
entity.key_down # => nil
Will return the component that is a Oid::Components::KeyDown
or raise
Will return true if the entity has an component Oid::Components::KeyDown
or false if it does not
Will return true if the entity has an component Oid::Components::KeyDown
or false if it does not
Will return the component that is a Oid::Components::KeyDown
or raise
Append. Alias for #replace_key_down
Will replace the current component with the new one generated from the provided arguments
entity.replace_key_down
entity.get_key_down # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_key_down(new_comp)
entity.get_key_down # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_key_down
entity.get_key_down # => (new_comp)