lib/demiurge/action_item.rb
def action(name, *args)
      intention = ActionItemInternal::ActionIntention.new(engine, @item.name, name, *args)
      @item.engine.queue_intention(intention)
      nil
    end
# Create an action to be executed immediately. This doesn't go
# through an agent's action queue or make anybody busy. It just
# happens during the current tick, but it uses the normal
# allow/offer/execute/notify cycle.
#
# @param name [String] The action name
# @param args [Array] Additional arguments to send to the action
# @return [void]
# @since 0.0.1
Create an action to be executed immediately. This doesn't go
through an agent's action queue or make anybody busy. It just
happens during the current tick, but it uses the normal
allow/offer/execute/notify cycle.
Create an action to be executed immediately . This doesn ' t go through an agent ' s action queue or make anybody busy . It just happens during the current tick but it uses the normal allow / offer / execute / notify cycle .
def action(name, *args)
      intention = ActionItemInternal::ActionIntention.new(engine, @item.name, name, *args)
      @item.engine.queue_intention(intention)
      nil
    end
def action ( name , * args ) intention = ActionItemInternal :: ActionIntention . new ( engine , @item . name , name , * args ) @item . engine . queue_intention ( intention ) nil end
Create an action to be executed immediately.
Create an action to be executed immediately .
None
void
name
The action name
The action name
args
Additional arguments to send to the action
Additional arguments to send to the action
since
None