Class: Demiurge::TileZone

Inherits:
Zone show all
Defined in:
lib/demiurge/zone.rb

Overview

In a TileZone, each Location is permitted to contain a coordinate grid of sub-locations. A given entity occupies one or more sub-locations, but can't really be "in between" those coordinates. Most frequently, objects take up a single sub-location, or a small rectangle of them.

Since:

  • 0.0.1

Direct Known Subclasses

TmxZone

Constant Summary

Constants inherited from ActionItem

ActionItem::ACTION_LEGAL_KEYS

Instance Attribute Summary

Attributes inherited from StateItem

#engine, #name

Method Summary

Methods inherited from Zone

#adjacent_positions, #intentions_for_next_step, #location, #location_name, #position, #zone, #zone?, #zone_name

Methods inherited from Container

#can_accomodate_agent?, #contents_names, #ensure_contains, #ensure_does_not_contain, #finished_init, #initialize, #intentions_for_next_step, #item_change_location, #item_change_position, #move_item_inside, #receive_offer

Methods inherited from ActionItem

#__state_internal, #finished_init, #get_action, #get_actions_with_tags, #initialize, #intentions_for_next_step, #location, #location_name, #position, #register_actions, #run_action, #zone, #zone_name

Methods inherited from StateItem

#agent?, from_name_type, #get_structure, #initialize, #intentions_for_next_step, #state, #state_type, #zone?

Constructor Details

This class inherits a constructor from Demiurge::Container