module Oid::Components::Move::Helper

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def add_component_move : Entitas::Entity #

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

entity.add_component_move

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

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

entity.add_component_move

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

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

entity.add_move

def del_component_move : Entitas::Entity #

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

entity.del_move
entity.move # => nil

def del_move : Entitas::Entity #

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

entity.del_move
entity.move # => nil

def get_component_move : Oid::Components::Move #

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


def has_component_move? : Bool #

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


def has_move? : Bool #

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


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


def move? : Bool #

Alias. See #has_move?


def remove_component_move #

Append. Alias for #del_component_move


def remove_move #

Append. Alias for #del_move


def replace_component_move(component : Oid::Components::Move) #

Append. Alias for #replace_move


def replace_component_move(**args) #

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

entity.replace_move
entity.get_move # => (new_comp)

def replace_move(component : Oid::Components::Move) #

Will replace the current component with the new one provided

entity.replace_component_move(new_comp)
entity.get_move # => (new_comp)

def replace_move(**args) #

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

entity.replace_move
entity.get_move # => (new_comp)