module Oid::Components::Moveable::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_moveable : Entitas::Entity #

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

entity.add_component_moveable

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

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

entity.add_component_moveable

def add_moveable : Entitas::Entity #

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

entity.add_moveable

def del_component_moveable : Entitas::Entity #

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

entity.del_moveable
entity.moveable # => nil

def del_moveable : Entitas::Entity #

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

entity.del_moveable
entity.moveable # => nil

def get_component_moveable : Oid::Components::Moveable #

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


def has_component_moveable? : Bool #

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


def has_moveable? : Bool #

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


def moveable : Oid::Components::Moveable #

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


def moveable=(value : Bool) #

def moveable? : Bool #

Alias. See #has_moveable?


def remove_component_moveable #

Append. Alias for #del_component_moveable


def remove_moveable #

Append. Alias for #del_moveable


def replace_component_moveable(component : Oid::Components::Moveable) #

Append. Alias for #replace_moveable


def replace_component_moveable(**args) #

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

entity.replace_moveable
entity.get_moveable # => (new_comp)

def replace_moveable(component : Oid::Components::Moveable) #

Will replace the current component with the new one provided

entity.replace_component_moveable(new_comp)
entity.get_moveable # => (new_comp)

def replace_moveable #

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

entity.replace_moveable
entity.get_moveable # => (new_comp)