lib/demiurge/container.rb
def intentions_for_next_step
      intentions = super
      @state["contents"].each do |item_name|
        item = @engine.item_by_name(item_name)
        intentions += item.intentions_for_next_step
      end
      intentions
    end
# This determines the intentions for the next tick for this
# container and for all items inside it.
#
# @return [Array<Intention>] The array of intentions for next tick
# @since 0.0.1
This determines the intentions for the next tick for this
container and for all items inside it.
This determines the intentions for the next tick for this container and for all items inside it .
def intentions_for_next_step
      intentions = super
      @state["contents"].each do |item_name|
        item = @engine.item_by_name(item_name)
        intentions += item.intentions_for_next_step
      end
      intentions
    end
def intentions_for_next_step intentions = super @state [ "contents" ] . each do | item_name | item = @engine . item_by_name ( item_name ) intentions += item . intentions_for_next_step end intentions end
This determines the intentions for the next tick for this
container and for all items inside it.
This determines the intentions for the next tick for this container and for all items inside it .
The array of intentions for next tick
The array of intentions for next tick
Array<Intention>
since
None