module Oid::Components::Collidable::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_collidable : Entitas::Entity
Add a
Oid::Components::Collidable
to the entity. -
#add_component_collidable : Entitas::Entity
Add a
Oid::Components::Collidable
to the entity. -
#add_component_collidable(**args) : Entitas::Entity
Add a
Oid::Components::Collidable
to the entity. -
#collidable : Oid::Components::Collidable
Will return the component that is a
Oid::Components::Collidable
or raise - #collidable=(value : Bool)
-
#collidable? : Bool
Alias.
-
#del_collidable : Entitas::Entity
Delete
Oid::Components::Collidable
from the entity. -
#del_component_collidable : Entitas::Entity
Delete
Oid::Components::Collidable
from the entity. -
#get_component_collidable : Oid::Components::Collidable
Will return the component that is a
Oid::Components::Collidable
or raise -
#has_collidable? : Bool
Will return true if the entity has an component
Oid::Components::Collidable
or false if it does not -
#has_component_collidable? : Bool
Will return true if the entity has an component
Oid::Components::Collidable
or false if it does not -
#remove_collidable
Append.
-
#remove_component_collidable
Append.
-
#replace_collidable(component : Oid::Components::Collidable)
Will replace the current component with the new one provided
-
#replace_collidable
Will replace the current component with the new one generated from the provided arguments
-
#replace_component_collidable(component : Oid::Components::Collidable)
Append.
-
#replace_component_collidable(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::Collidable
to the entity. Returns self
to allow chainables
entity.add_collidable
Add a Oid::Components::Collidable
to the entity. Returns self
to allow chainables
entity.add_component_collidable
Add a Oid::Components::Collidable
to the entity. Returns self
to allow chainables
entity.add_component_collidable
Will return the component that is a Oid::Components::Collidable
or raise
Delete Oid::Components::Collidable
from the entity. Returns self
to allow chainables
entity.del_collidable
entity.collidable # => nil
Delete Oid::Components::Collidable
from the entity. Returns self
to allow chainables
entity.del_collidable
entity.collidable # => nil
Will return the component that is a Oid::Components::Collidable
or raise
Will return true if the entity has an component Oid::Components::Collidable
or false if it does not
Will return true if the entity has an component Oid::Components::Collidable
or false if it does not
Will replace the current component with the new one provided
entity.replace_component_collidable(new_comp)
entity.get_collidable # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_collidable
entity.get_collidable # => (new_comp)
Append. Alias for #replace_collidable
Will replace the current component with the new one generated from the provided arguments
entity.replace_collidable
entity.get_collidable # => (new_comp)