module Oid::Components::BoundingBox::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_bounding_box(value : Oid::Element::BoundingBox) : Entitas::Entity
Add a
Oid::Components::BoundingBox
to the entity. -
#add_component_bounding_box : Entitas::Entity
Add a
Oid::Components::BoundingBox
to the entity. -
#add_component_bounding_box(**args) : Entitas::Entity
Add a
Oid::Components::BoundingBox
to the entity. -
#bounding_box : Oid::Components::BoundingBox
Will return the component that is a
Oid::Components::BoundingBox
or raise -
#bounding_box? : Bool
Alias.
-
#del_bounding_box : Entitas::Entity
Delete
Oid::Components::BoundingBox
from the entity. -
#del_component_bounding_box : Entitas::Entity
Delete
Oid::Components::BoundingBox
from the entity. -
#get_component_bounding_box : Oid::Components::BoundingBox
Will return the component that is a
Oid::Components::BoundingBox
or raise -
#has_bounding_box? : Bool
Will return true if the entity has an component
Oid::Components::BoundingBox
or false if it does not -
#has_component_bounding_box? : Bool
Will return true if the entity has an component
Oid::Components::BoundingBox
or false if it does not -
#remove_bounding_box
Append.
-
#remove_component_bounding_box
Append.
-
#replace_bounding_box(component : Oid::Components::BoundingBox)
Will replace the current component with the new one provided
-
#replace_bounding_box(value : Oid::Element::BoundingBox)
Will replace the current component with the new one generated from the provided arguments
-
#replace_component_bounding_box(component : Oid::Components::BoundingBox)
Append.
-
#replace_component_bounding_box(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Add a Oid::Components::BoundingBox
to the entity. Returns self
to allow chainables
entity.add_bounding_box(1)
Add a Oid::Components::BoundingBox
to the entity. Returns self
to allow chainables
entity.add_component_bounding_box
Add a Oid::Components::BoundingBox
to the entity. Returns self
to allow chainables
entity.add_component_bounding_box
Will return the component that is a Oid::Components::BoundingBox
or raise
Delete Oid::Components::BoundingBox
from the entity. Returns self
to allow chainables
entity.del_bounding_box
entity.bounding_box # => nil
Delete Oid::Components::BoundingBox
from the entity. Returns self
to allow chainables
entity.del_bounding_box
entity.bounding_box # => nil
Will return the component that is a Oid::Components::BoundingBox
or raise
Will return true if the entity has an component Oid::Components::BoundingBox
or false if it does not
Will return true if the entity has an component Oid::Components::BoundingBox
or false if it does not
Will replace the current component with the new one provided
entity.replace_component_bounding_box(new_comp)
entity.get_bounding_box # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_bounding_box(value: 1)
entity.get_bounding_box # => (new_comp)
or
entity.replace_bounding_box(1)
entity.get_bounding_box # => (new_comp)
Append. Alias for #replace_bounding_box
Will replace the current component with the new one generated from the provided arguments
entity.replace_bounding_box
entity.get_bounding_box # => (new_comp)