module Oid::Components::BoundingBox::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_bounding_box(value : Oid::Element::BoundingBox) : Entitas::Entity #

Add a Oid::Components::BoundingBox to the entity. Returns self to allow chainables

entity.add_bounding_box(1)

def add_component_bounding_box : Entitas::Entity #

Add a Oid::Components::BoundingBox to the entity. Returns self to allow chainables

entity.add_component_bounding_box

def add_component_bounding_box(**args) : Entitas::Entity #

Add a Oid::Components::BoundingBox to the entity. Returns self to allow chainables

entity.add_component_bounding_box

def bounding_box : Oid::Components::BoundingBox #

Will return the component that is a Oid::Components::BoundingBox or raise


def bounding_box? : Bool #

Alias. See #has_bounding_box?


def del_bounding_box : Entitas::Entity #

Delete Oid::Components::BoundingBox from the entity. Returns self to allow chainables

entity.del_bounding_box
entity.bounding_box # => nil

def del_component_bounding_box : Entitas::Entity #

Delete Oid::Components::BoundingBox from the entity. Returns self to allow chainables

entity.del_bounding_box
entity.bounding_box # => nil

def get_component_bounding_box : Oid::Components::BoundingBox #

Will return the component that is a Oid::Components::BoundingBox or raise


def has_bounding_box? : Bool #

Will return true if the entity has an component Oid::Components::BoundingBox or false if it does not


def has_component_bounding_box? : Bool #

Will return true if the entity has an component Oid::Components::BoundingBox or false if it does not


def remove_bounding_box #

Append. Alias for #del_bounding_box


def remove_component_bounding_box #

Append. Alias for #del_component_bounding_box


def replace_bounding_box(component : Oid::Components::BoundingBox) #

Will replace the current component with the new one provided

entity.replace_component_bounding_box(new_comp)
entity.get_bounding_box # => (new_comp)

def replace_bounding_box(value : Oid::Element::BoundingBox) #

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)

def replace_component_bounding_box(component : Oid::Components::BoundingBox) #

Append. Alias for #replace_bounding_box


def replace_component_bounding_box(**args) #

Will replace the current component with the new one generated from the provided arguments

entity.replace_bounding_box
entity.get_bounding_box # => (new_comp)