lib/demiurge/zone.rb
def intentions_for_next_step
      intentions = @state["contents"].flat_map do |item_name|
        item = @engine.item_by_name(item_name)
        item.agent? ? [] : item.intentions_for_next_step
      end
      intentions
    end
# By default, a zone just passes control to all its non-agent
# items, gathering up their intentions into a list. It doesn't ask
# agents since agents located directly in zones are usually only
# for instantiation.
#
# @return [Array<Demiurge::Intention>] The array of intentions for the next tick
# @since 0.0.1
By default, a zone just passes control to all its non-agent
items, gathering up their intentions into a list. It doesn't ask
agents since agents located directly in zones are usually only
for instantiation.
By default a zone just passes control to all its non - agent items gathering up their intentions into a list . It doesn ' t ask agents since agents located directly in zones are usually only for instantiation .
def intentions_for_next_step
      intentions = @state["contents"].flat_map do |item_name|
        item = @engine.item_by_name(item_name)
        item.agent? ? [] : item.intentions_for_next_step
      end
      intentions
    end
def intentions_for_next_step intentions = @state [ "contents" ] . flat_map do | item_name | item = @engine . item_by_name ( item_name ) item . agent? ? [ ] : item . intentions_for_next_step end intentions end
By default, a zone just passes control to all its non-agent
items, gathering up their intentions into a list.
By default a zone just passes control to all its non - agent items gathering up their intentions into a list .
The array of intentions for the next tick
The array of intentions for the next tick
Array<Demiurge::Intention>
since
None