Class: UI::VoltorbFlip::BoardTile

Inherits:
SpriteStack show all
Defined in:
docs/4_Systems_900_Games.rb

Overview

Board tile in VoltorbFlip game

Constant Summary

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from SpriteStack

#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

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

Parameters:



192
193
# File 'docs/4_Systems_900_Games.rb', line 192

def initialize(viewport)
end

Instance Attribute Details

#content ⇒ Integer, :voltorb

Returns Content of the tile.

Returns:

  • (Integer, :voltorb) —

    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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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

Parameters:

  • mx (Integer) —

    X coordinate of the mouse

  • my (Integer) —

    Y coordinate of the mouse

Returns:

  • (Boolean)


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

Parameters:

  • index (Integer) —

    index of the memo in the marker array



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

Returns:

  • (Boolean) —

    if the animation will still run



223
224
# File 'docs/4_Systems_900_Games.rb', line 223

def update_animation
end

#update_hide_animation ⇒ Boolean

Update the hide animation

Returns:

  • (Boolean) —

    if the animation will still run



231
232
# File 'docs/4_Systems_900_Games.rb', line 231

def update_hide_animation
end

#update_reveal_animation ⇒ Boolean

Update the reveal animation

Returns:

  • (Boolean) —

    if the animation will still run



227
228
# File 'docs/4_Systems_900_Games.rb', line 227

def update_reveal_animation
end