module Oid::Components::Actor::Helper
Direct including types
Defined in:
Instance Method Summary
-
#actor : Oid::Components::Actor
Will return the component that is a
Oid::Components::Actor
or raise -
#actor? : Bool
Alias.
-
#add_actor(name : String) : Entitas::Entity
Add a
Oid::Components::Actor
to the entity. - #add_actor_listener(value : Oid::Components::Actor::Listener)
-
#add_component_actor : Entitas::Entity
Add a
Oid::Components::Actor
to the entity. -
#add_component_actor(**args) : Entitas::Entity
Add a
Oid::Components::Actor
to the entity. -
#del_actor : Entitas::Entity
Delete
Oid::Components::Actor
from the entity. -
#del_component_actor : Entitas::Entity
Delete
Oid::Components::Actor
from the entity. -
#get_component_actor : Oid::Components::Actor
Will return the component that is a
Oid::Components::Actor
or raise -
#has_actor? : Bool
Will return true if the entity has an component
Oid::Components::Actor
or false if it does not -
#has_component_actor? : Bool
Will return true if the entity has an component
Oid::Components::Actor
or false if it does not -
#remove_actor
Append.
- #remove_actor_listener(value : Oid::Components::Actor::Listener, remove_comp_when_empty = false)
-
#remove_component_actor
Append.
-
#replace_actor(name : String)
Will replace the current component with the new one generated from the provided arguments
-
#replace_actor(component : Oid::Components::Actor)
Will replace the current component with the new one provided
-
#replace_component_actor(component : Oid::Components::Actor)
Append.
-
#replace_component_actor(**args)
Will replace the current component with the new one generated from the provided arguments
Instance Method Detail
Will return the component that is a Oid::Components::Actor
or raise
Add a Oid::Components::Actor
to the entity. Returns self
to allow chainables
entity.add_actor(1)
Add a Oid::Components::Actor
to the entity. Returns self
to allow chainables
entity.add_component_actor
Add a Oid::Components::Actor
to the entity. Returns self
to allow chainables
entity.add_component_actor
Delete Oid::Components::Actor
from the entity. Returns self
to allow chainables
entity.del_actor
entity.actor # => nil
Delete Oid::Components::Actor
from the entity. Returns self
to allow chainables
entity.del_actor
entity.actor # => nil
Will return the component that is a Oid::Components::Actor
or raise
Will return true if the entity has an component Oid::Components::Actor
or false if it does not
Will return true if the entity has an component Oid::Components::Actor
or false if it does not
Will replace the current component with the new one generated from the provided arguments
entity.replace_actor(value: 1)
entity.get_actor # => (new_comp)
or
entity.replace_actor(1)
entity.get_actor # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_actor(new_comp)
entity.get_actor # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_actor
entity.get_actor # => (new_comp)