CollisionSystem class

Pure collision detection logic. No Flutter dependencies.

Constructors

CollisionSystem()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canMove(Tetromino piece, BoardState board, int dRow, int dCol) bool
True if the piece can move one cell in the given direction.
ghostPiece(Tetromino piece, BoardState board) Tetromino
Returns the lowest valid Y the piece can drop to (for ghost piece).
hasCollision(Tetromino piece, BoardState board) bool
Returns true if piece overlaps any filled cell or is out of bounds.
isLockOut(Tetromino piece) bool
True if piece is entirely above row 0 (lock-out / game-over condition).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited