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, #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:



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

def initialize(viewport)
end

Instance Attribute Details

#contentInteger, :voltorb

Returns Content of the tile.

Returns:

  • (Integer, :voltorb)

    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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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

Parameters:

  • mx (Integer)

    X coordinate of the mouse

  • my (Integer)

    Y coordinate of the mouse

Returns:

  • (Boolean)


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

Parameters:

  • index (Integer)

    index of the memo in the marker array



205
206
# File 'docs/4_Systems_900_Games.rb', line 205

def toggle_memo(index)
end

#update_animationBoolean

Update the animation of the tile

Returns:

  • (Boolean)

    if the animation will still run



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

def update_animation
end

#update_hide_animationBoolean

Update the hide animation

Returns:

  • (Boolean)

    if the animation will still run



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

def update_hide_animation
end

#update_reveal_animationBoolean

Update the reveal animation

Returns:

  • (Boolean)

    if the animation will still run



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

def update_reveal_animation
end