Class: UI::MiningGame::Tiles
- Inherits:
-
SpriteSheet
- Object
- LiteRGSS::Disposable
- LiteRGSS::Drawable
- LiteRGSS::Sprite
- LiteRGSS::ShaderedSprite
- Sprite
- ShaderedSprite
- SpriteSheet
- UI::MiningGame::Tiles
- Defined in:
- docs/4_Systems_801_Mining_Game.rb
Overview
Class that describes the Tiles sprite
Instance Attribute Summary collapse
-
#state ⇒ Integer
State of the tile.
Attributes inherited from SpriteSheet
Attributes inherited from LiteRGSS::ShaderedSprite
Attributes inherited from LiteRGSS::Sprite
#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #viewport, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y
Instance Method Summary collapse
-
#initialize(viewport, state) ⇒ Tiles
constructor
Create the Tiles.
-
#lower_state(reason)
Lower the state and update the image in consequence.
-
#update_sx
Update the state of the sheet.
Methods inherited from SpriteSheet
Methods inherited from Sprite
#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords, #update
Methods inherited from LiteRGSS::Sprite
new, #set_origin, #set_position
Methods inherited from LiteRGSS::Disposable
Constructor Details
#initialize(viewport, state) ⇒ Tiles
Create the Tiles
510 511 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 510 def initialize(, state) end |
Instance Attribute Details
#state ⇒ Integer
Returns state of the tile.
506 507 508 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 506 def state @state end |
Instance Method Details
#lower_state(reason)
Lower the state and update the image in consequence
517 518 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 517 def lower_state(reason) end |
#update_sx
Update the state of the sheet
513 514 |
# File 'docs/4_Systems_801_Mining_Game.rb', line 513 def update_sx end |