Class: ShapeZ

Inherits:
ShapeS show all
Defined in:
lib/shapeZ.rb

Overview

][

Instance Attribute Summary

Attributes inherited from Shape

#blocks, #falling, #rotation, #x, #y

Instance Method Summary collapse

Methods inherited from ShapeS

#initialize

Methods inherited from Shape

#collides?, #collides_with_blocks?, #collides_with_walls?, #draw, #falling?, #initialize, #maximum_x_block, #maximum_y_block, #minimum_x_block, #rotate, #shape_to_array, #translate_by_y, #update, #update_move_x, #update_move_y

Constructor Details

This class inherits a constructor from ShapeS

Instance Method Details

#get_blocksObject



8
9
10
11
12
13
# File 'lib/shapeZ.rb', line 8

def get_blocks
  super
  translate_by_y

  @blocks
end