Class: Dedalus::Elements::MapTile
- Inherits:
-
Molecule
- Object
- Dedalus::Element
- Molecule
- Dedalus::Elements::MapTile
- Defined in:
- lib/dedalus/elements/map_tile.rb
Instance Attribute Summary collapse
-
#asset_height ⇒ Object
Returns the value of attribute asset_height.
-
#asset_width ⇒ Object
Returns the value of attribute asset_width.
-
#frame ⇒ Object
Returns the value of attribute frame.
-
#highlight ⇒ Object
Returns the value of attribute highlight.
-
#path ⇒ Object
Returns the value of attribute path.
-
#scale ⇒ Object
Returns the value of attribute scale.
Attributes inherited from Dedalus::Element
#background_color, #color, #height, #height_percent, #margin, #offset, #padding, #position, #shown, #width, #width_percent, #z_order
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Molecule
Methods inherited from Dedalus::Element
#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #initialize, #record?, #tiny_font, #view, #window
Constructor Details
This class inherits a constructor from Dedalus::Element
Instance Attribute Details
#asset_height ⇒ Object
Returns the value of attribute asset_height.
4 5 6 |
# File 'lib/dedalus/elements/map_tile.rb', line 4 def asset_height @asset_height end |
#asset_width ⇒ Object
Returns the value of attribute asset_width.
4 5 6 |
# File 'lib/dedalus/elements/map_tile.rb', line 4 def asset_width @asset_width end |
#frame ⇒ Object
Returns the value of attribute frame.
4 5 6 |
# File 'lib/dedalus/elements/map_tile.rb', line 4 def frame @frame end |
#highlight ⇒ Object
Returns the value of attribute highlight.
6 7 8 |
# File 'lib/dedalus/elements/map_tile.rb', line 6 def highlight @highlight end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/dedalus/elements/map_tile.rb', line 4 def path @path end |
#scale ⇒ Object
Returns the value of attribute scale.
4 5 6 |
# File 'lib/dedalus/elements/map_tile.rb', line 4 def scale @scale end |
Class Method Details
.description ⇒ Object
22 23 24 |
# File 'lib/dedalus/elements/map_tile.rb', line 22 def self.description 'example of a custom tile class for image grid/sprite field' end |
.example_data ⇒ Object
26 27 28 |
# File 'lib/dedalus/elements/map_tile.rb', line 26 def self.example_data Sprite.example_data end |
Instance Method Details
#show ⇒ Object
8 9 10 |
# File 'lib/dedalus/elements/map_tile.rb', line 8 def show tile_sprite end |