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, #font_id, #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
192 193 |
# File 'docs/4_Systems_900_Games.rb', line 192 def initialize() end |
Instance Attribute Details
#content ⇒ Integer, :voltorb
Returns Content of the tile.
189 190 191 |
# File 'docs/4_Systems_900_Games.rb', line 189 def content @content end |
Instance Method Details
#hide
Hide the tile
216 217 |
# File 'docs/4_Systems_900_Games.rb', line 216 def hide end |
#hiden? ⇒ Boolean
Tell if the tile is hidden
219 220 |
# File 'docs/4_Systems_900_Games.rb', line 219 def hiden? end |
#reveal
Reveal the tile
209 210 |
# File 'docs/4_Systems_900_Games.rb', line 209 def reveal end |
#revealed? ⇒ Boolean
Tell if the tile was revealed
213 214 |
# File 'docs/4_Systems_900_Games.rb', line 213 def revealed? end |
#simple_mouse_in?(mx, my) ⇒ Boolean
Detect if the mouse is in the tile
198 199 |
# File 'docs/4_Systems_900_Games.rb', line 198 def simple_mouse_in?(mx, my) end |
#toggle_memo(index)
Toggle a memo marker
206 207 |
# File 'docs/4_Systems_900_Games.rb', line 206 def toggle_memo(index) end |
#update_animation ⇒ Boolean
Update the animation of the tile
223 224 |
# File 'docs/4_Systems_900_Games.rb', line 223 def update_animation end |
#update_hide_animation ⇒ Boolean
Update the hide animation
231 232 |
# File 'docs/4_Systems_900_Games.rb', line 231 def update_hide_animation end |
#update_reveal_animation ⇒ Boolean
Update the reveal animation
227 228 |
# File 'docs/4_Systems_900_Games.rb', line 227 def update_reveal_animation end |