module Oid::Components::MousePressed::Helper
Defined in:
Instance Method Summary
-
#add_component_mouse_pressed : Entitas::Entity
Add a
Oid::Components::MousePressed
to the entity. -
#add_component_mouse_pressed(**args) : Entitas::Entity
Add a
Oid::Components::MousePressed
to the entity. -
#add_mouse_pressed(position : Oid::Vector2) : Entitas::Entity
Add a
Oid::Components::MousePressed
to the entity. -
#del_component_mouse_pressed : Entitas::Entity
Delete
Oid::Components::MousePressed
from the entity. -
#del_mouse_pressed : Entitas::Entity
Delete
Oid::Components::MousePressed
from the entity. -
#get_component_mouse_pressed : Oid::Components::MousePressed
Will return the component that is a
Oid::Components::MousePressed
or raise -
#has_component_mouse_pressed? : Bool
Will return true if the entity has an component
Oid::Components::MousePressed
or false if it does not -
#has_mouse_pressed? : Bool
Will return true if the entity has an component
Oid::Components::MousePressed
or false if it does not -
#mouse_pressed : Oid::Components::MousePressed
Will return the component that is a
Oid::Components::MousePressed
or raise -
#mouse_pressed? : Bool
Alias.
-
#remove_component_mouse_pressed
Append.
-
#remove_mouse_pressed
Append.
-
#replace_component_mouse_pressed(component : Oid::Components::MousePressed)
Append.
-
#replace_component_mouse_pressed(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_mouse_pressed(position : Oid::Vector2)
Will replace the current component with the new one generated from the provided arguments
-
#replace_mouse_pressed(component : Oid::Components::MousePressed)
Will replace the current component with the new one provided
Instance Method Detail
Add a Oid::Components::MousePressed
to the entity. Returns self
to allow chainables
entity.add_component_mouse_pressed
Add a Oid::Components::MousePressed
to the entity. Returns self
to allow chainables
entity.add_component_mouse_pressed
Add a Oid::Components::MousePressed
to the entity. Returns self
to allow chainables
entity.add_mouse_pressed(1)
Delete Oid::Components::MousePressed
from the entity. Returns self
to allow chainables
entity.del_mouse_pressed
entity.mouse_pressed # => nil
Delete Oid::Components::MousePressed
from the entity. Returns self
to allow chainables
entity.del_mouse_pressed
entity.mouse_pressed # => nil
Will return the component that is a Oid::Components::MousePressed
or raise
Will return true if the entity has an component Oid::Components::MousePressed
or false if it does not
Will return true if the entity has an component Oid::Components::MousePressed
or false if it does not
Will return the component that is a Oid::Components::MousePressed
or raise
Append. Alias for #replace_mouse_pressed
Will replace the current component with the new one generated from the provided arguments
entity.replace_mouse_pressed
entity.get_mouse_pressed # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_mouse_pressed(value: 1)
entity.get_mouse_pressed # => (new_comp)
or
entity.replace_mouse_pressed(1)
entity.get_mouse_pressed # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_mouse_pressed(new_comp)
entity.get_mouse_pressed # => (new_comp)