Class: UI::VoltorbFlip::BoardTile
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::VoltorbFlip::BoardTile
- Defined in:
- docs/4_Systems_900_Games.rb
Overview
Board tile in VoltorbFlip game
Constant Summary
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#content ⇒ Integer, :voltorb
Content of the tile.
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#hide
Hide the tile.
-
#hiden? ⇒ Boolean
Tell if the tile is hidden.
-
#initialize(viewport) ⇒ BoardTile
constructor
Create a new BoardTile.
-
#reveal
Reveal the tile.
-
#revealed? ⇒ Boolean
Tell if the tile was revealed.
-
#simple_mouse_in?(mx, my) ⇒ Boolean
Detect if the mouse is in the tile.
-
#toggle_memo(index)
Toggle a memo marker.
-
#update_animation ⇒ Boolean
Update the animation of the tile.
-
#update_hide_animation ⇒ Boolean
Update the hide animation.
-
#update_reveal_animation ⇒ Boolean
Update the reveal animation.
Methods inherited from SpriteStack
#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #size, #stop_animation, #translate_mouse_coords, #update, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport) ⇒ BoardTile
Create a new BoardTile
191 192 |
# File 'docs/4_Systems_900_Games.rb', line 191 def initialize() end |
Instance Attribute Details
#content ⇒ Integer, :voltorb
Returns Content of the tile.
188 189 190 |
# File 'docs/4_Systems_900_Games.rb', line 188 def content @content end |
Instance Method Details
#hide
Hide the tile
215 216 |
# File 'docs/4_Systems_900_Games.rb', line 215 def hide end |
#hiden? ⇒ Boolean
Tell if the tile is hidden
218 219 |
# File 'docs/4_Systems_900_Games.rb', line 218 def hiden? end |
#reveal
Reveal the tile
208 209 |
# File 'docs/4_Systems_900_Games.rb', line 208 def reveal end |
#revealed? ⇒ Boolean
Tell if the tile was revealed
212 213 |
# File 'docs/4_Systems_900_Games.rb', line 212 def revealed? end |
#simple_mouse_in?(mx, my) ⇒ Boolean
Detect if the mouse is in the tile
197 198 |
# File 'docs/4_Systems_900_Games.rb', line 197 def simple_mouse_in?(mx, my) end |
#toggle_memo(index)
Toggle a memo marker
205 206 |
# File 'docs/4_Systems_900_Games.rb', line 205 def toggle_memo(index) end |
#update_animation ⇒ Boolean
Update the animation of the tile
222 223 |
# File 'docs/4_Systems_900_Games.rb', line 222 def update_animation end |
#update_hide_animation ⇒ Boolean
Update the hide animation
230 231 |
# File 'docs/4_Systems_900_Games.rb', line 230 def update_hide_animation end |
#update_reveal_animation ⇒ Boolean
Update the reveal animation
226 227 |
# File 'docs/4_Systems_900_Games.rb', line 226 def update_reveal_animation end |