Class: Zif::Layers::TiledLayer

Inherits:
SimpleLayer show all
Includes:
Tileable
Defined in:
lib/zif/layers/tiled_layer.rb

Overview

Designed to be used with LayerGroup. A layer consisting of an initially empty 2D array of sprites Overrides to SimpleLayer which understand this 2D array Tileable, built on top of a RenderTarget

Instance Attribute Summary

Attributes inherited from SimpleLayer

#clear_sprites_after_draw, #render_only_visible, #rerender_rect, #source_sprites

Attributes included from Layerable

#layer_name, #map, #should_render, #z_index

Attributes inherited from RenderTarget

#bg_color, #height, #labels, #name, #primitives, #sprites, #width, #z_index

Method Summary

Methods included from Tileable

#add_positioned_sprite, #exclude_from_serialize, #intersecting_sprites, #reinitialize_sprites, #remove_positioned_sprite, #remove_tile, #tile, #tile_pos_to_sprite_index, #visible_sprites

Methods inherited from SimpleLayer

#add_positioned_sprite, #initialize, #reinitialize_sprites, #remove_sprite, #rerender

Methods included from Layerable

#clicked?, #exclude_from_serialize, #intersecting_sprites, #position_sprite, #remove_positioned_sprite, #target_layer_name, #visible_sprites

Methods inherited from RenderTarget

#clicked?, #containing_sprite, #cut_containing_sprites, #exclude_from_serialize, #full_containing_sprite, #initialize, #project_from, #project_to, #redraw, #redraw_from_buffer, #relative_point, #resize, #set_inactive_buffer_name, #switch_buffer

Methods included from Serializable

#exclude_from_serialize, #inspect, #serialize, #to_s

Constructor Details

This class inherits a constructor from Zif::Layers::SimpleLayer