examples/pending/rague/src/rague.rb
# allows for rague to handle the contents of the given tile
allows for rague to handle the contents of the given tile
allows for rague to handle the contents of the given tile
def handle_tile_contents(tile)
      removed = []
      tile.occupants.each do |thing|
        if thing.do_or_do_not :hostile
        elsif thing.do_or_do_not :pickupable
          removed << thing
        else
        end
      end
      removed.each do |thing|
        tile.occupants.delete thing
        thing.react_to :hide
        thing.remove
        add_to_inventory thing
      end
    end
def handle_tile_contents ( tile ) removed = [ ] tile . occupants . each do | thing | if thing . do_or_do_not :hostile elsif thing . do_or_do_not :pickupable removed << thing else end end removed . each do | thing | tile . occupants . delete thing thing . react_to :hide thing . remove add_to_inventory thing end end
allows for rague to handle the contents of the given tile
allows for rague to handle the contents of the given tile
# TODO actually do something here... # EEEWWWWW # TODO fight it? # pick it up? # nothing?
tile
<not_specific>