module Oid::Components::Window::Helper

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_window : Entitas::Entity #

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

entity.add_component_window

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

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

entity.add_component_window

def add_window(value : Oid::Controller::Window) : Entitas::Entity #

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

entity.add_window(1)

def del_component_window : Entitas::Entity #

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

entity.del_window
entity.window # => nil

def del_window : Entitas::Entity #

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

entity.del_window
entity.window # => nil

def get_component_window : Oid::Components::Window #

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


def has_component_window? : Bool #

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


def has_window? : Bool #

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


def remove_component_window #

Append. Alias for #del_component_window


def remove_window #

Append. Alias for #del_window


def replace_component_window(component : Oid::Components::Window) #

Append. Alias for #replace_window


def replace_component_window(**args) #

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

entity.replace_window
entity.get_window # => (new_comp)

def replace_window(component : Oid::Components::Window) #

Will replace the current component with the new one provided

entity.replace_component_window(new_comp)
entity.get_window # => (new_comp)

def replace_window(value : Oid::Controller::Window) #

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

entity.replace_window(value: 1)
entity.get_window # => (new_comp)

or

entity.replace_window(1)
entity.get_window # => (new_comp)

def window : Oid::Components::Window #

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


def window? : Bool #

Alias. See #has_window?