Games::Tetris::Shape - representation of a tetris shape


Games-Tetris documentation  | view source Contained in the Games-Tetris distribution.

Index


NAME

Top

Games::Tetris::Shape - representation of a tetris shape

SYNOPSIS

Top

METHODS

Top

new( @rows )

Construct a new shape

covers( $offset_x, $offset_y )

Top

return a list of points that the shape covers, offset by $offset_x, $offset_y.

Each point is an anonymous array containing $x, $y, and what's in the cell

AUTHOR

Top

Richard Clamp <richardc@unixbeard.net>

COPYRIGHT

Top

SEE ALSO

Top

Games::Tetris


Games-Tetris documentation  | view source Contained in the Games-Tetris distribution.