class Tetryst::Tetromino

Defined in:

tetryst/tetromino.cr

Constant Summary

GHOST_INSET_COLOR = LibRay::WHITE
GHOST_INSET_SIZE = 1

Constructors

Instance Method Summary

Constructor Detail

def self.new(shape : Shape, grid_x : Int32 = 0, grid_y : Int32 = 0) #

[View source]

Instance Method Detail

def blocked #

[View source]
def cells : Array(Array(Cell)) #

[View source]
def collided #

[View source]
def draw(x, y, size) #

[View source]
def free #

[View source]
def ghost_y : Int32 #

[View source]
def grid_x : Int32 #

[View source]
def grid_x=(grid_x : Int32) #

[View source]
def grid_y : Int32 #

[View source]
def grid_y=(grid_y : Int32) #

[View source]
def hard_drop #

[View source]
def print #

[View source]
def rotate(direction) #

[View source]
def shape : Shape #

[View source]
def status : Status #

[View source]
def update_ghost(grid_cells) #

[View source]
def update_status(grid_cells, delta_x = 0, delta_y = 0) #

[View source]