Record Class GameControls.FrozenBlocks
java.lang.Object
java.lang.Record
edu.uw.tcss.model.GameControls.FrozenBlocks
- Record Components:
blocks- all TetrisBlockobjects that have frozen into place
- Enclosing interface:
GameControls
Data class that represents all Tetris
Note: Implementing classes may use
Block objects that have frozen into place.
A frozen Block object is individual Block object from a complete
tetromino that has completed its trajectory down the board and has frozen into place.
Note: Implementing classes may use
Block.EMPTY or null for
Empty spaces in the collection. Please refer to that documentation for implementation
specific details.- Version:
- Autumn 25
- Author:
- Charles Bryan
-
Constructor Summary
ConstructorsConstructorDescriptionFrozenBlocks(List<GameControls.Block[]> blocks) Creates an instance of aFrozenBlocksrecord class. -
Method Summary
-
Constructor Details
-
FrozenBlocks
Creates an instance of aFrozenBlocksrecord class.- Parameters:
blocks- the value for theblocksrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
blocks
-