Class: UI::MiningGame::Diggable_Stack

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

Overview

Class that describes the Diggable_Stack

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, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport, item_arr, iron_arr) ⇒ Diggable_Stack

Create the Diggable_Stack

Parameters:

  • viewport (Viewport)

    the viewport of the scene

  • item_arr (Array<PFM::MiningGame::Diggable] the array containing the items to dig)

    tem_arr [Array<PFM::MiningGame::Diggable] the array containing the items to dig

  • iron_arr (Array<PFM::MiningGame::Diggable] the array containing the irons to not dig)

    ron_arr [Array<PFM::MiningGame::Diggable] the array containing the irons to not dig



407
408
# File 'docs/4_Systems_801_Mining_Game.rb', line 407

def initialize(viewport, item_arr, iron_arr)
end

Instance Attribute Details

#iron_arrArray<UI::MiningGame::Diggable_Sprite] the array containing every irons' sprite

Returns Array<UI::MiningGame::Diggable_Sprite] the array containing every irons’ sprite.

Returns:

  • (Array<UI::MiningGame::Diggable_Sprite] the array containing every irons' sprite)

    Array<UI::MiningGame::Diggable_Sprite] the array containing every irons’ sprite



402
403
404
# File 'docs/4_Systems_801_Mining_Game.rb', line 402

def iron_arr
  @iron_arr
end

#item_arrArray<UI::MiningGame::Diggable_Sprite] the array containing every items' sprite

Returns Array<UI::MiningGame::Diggable_Sprite] the array containing every items’ sprite.

Returns:

  • (Array<UI::MiningGame::Diggable_Sprite] the array containing every items' sprite)

    Array<UI::MiningGame::Diggable_Sprite] the array containing every items’ sprite



400
401
402
# File 'docs/4_Systems_801_Mining_Game.rb', line 400

def item_arr
  @item_arr
end