Index

A B C D E F G H I J K L N O P R S T U V X Y Z 
All Classes and Interfaces|All Packages

A

addPropertyChangeListener(PropertyChangeListener) - Method in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
Add a PropertyChangeListener to the listener list.
addPropertyChangeListener(PropertyChangeListener) - Method in class edu.uw.tcss.model.TetrisGame
 
addPropertyChangeListener(String, PropertyChangeListener) - Method in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
Add a PropertyChangeListener for a specific property.
addPropertyChangeListener(String, PropertyChangeListener) - Method in class edu.uw.tcss.model.TetrisGame
 
Available Events - Section in package edu.uw.tcss.model
 
Available Game Events - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 

B

Basic Usage - Section in class edu.uw.tcss.model.TetrisGame
 
block() - Method in record class edu.uw.tcss.model.GameControls.IndividualPiece
Returns the value of the block record component.
blocks() - Method in record class edu.uw.tcss.model.GameControls.FrozenBlocks
Returns the value of the blocks record component.
blocks() - Method in record class edu.uw.tcss.model.GameEvent.FrozenBlocksChanged
Returns the value of the blocks record component.

C

Common Usage Patterns - Section in package edu.uw.tcss.model
 
count() - Method in record class edu.uw.tcss.model.GameEvent.RowsCleared
Returns the value of the count record component.
CurrentPieceChanged(GameControls.IndividualPiece, long) - Constructor for record class edu.uw.tcss.model.GameEvent.CurrentPieceChanged
Creates an instance of a CurrentPieceChanged record class.

D

Data Structures - Section in package edu.uw.tcss.model
 
down() - Method in interface edu.uw.tcss.model.GameControls
Try to move the movable piece down.
down() - Method in class edu.uw.tcss.model.TetrisGame
Try to move the movable piece down.
drop() - Method in interface edu.uw.tcss.model.GameControls
Drop the movable piece until it is set.
drop() - Method in class edu.uw.tcss.model.TetrisGame
Drop the movable piece until it is set.

E

edu.uw.tcss.model - package edu.uw.tcss.model
Provides the core game logic and data model for a Tetris game.
EMPTY - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
An empty space in the grid.
endGame() - Method in interface edu.uw.tcss.model.GameControls
Places the game in GameState.OVER.
endGame() - Method in class edu.uw.tcss.model.TetrisGame
Places the game in GameState.OVER.
equals(Object) - Method in record class edu.uw.tcss.model.GameControls.FrozenBlocks
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.GameControls.IndividualPiece
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.GameControls.Point
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.GameEvent.CurrentPieceChanged
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.GameEvent.FrozenBlocksChanged
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.GameEvent.GameStateChanged
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.GameEvent.NextPieceChanged
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class edu.uw.tcss.model.GameEvent.RowsCleared
Indicates whether some other object is "equal to" this one.
Event System - Section in package edu.uw.tcss.model
 
Event System Overview - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 
Event Timing and Order - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 

F

FrozenBlocks(List) - Constructor for record class edu.uw.tcss.model.GameControls.FrozenBlocks
Creates an instance of a FrozenBlocks record class.
FrozenBlocksChanged(GameControls.FrozenBlocks, long) - Constructor for record class edu.uw.tcss.model.GameEvent.FrozenBlocksChanged
Creates an instance of a FrozenBlocksChanged record class.

G

GameControls - Interface in edu.uw.tcss.model
The controls for a Tetris game.
GameControls.Block - Enum Class in edu.uw.tcss.model
The different types of blocks that can be stored in a Board's grid.
GameControls.FrozenBlocks - Record Class in edu.uw.tcss.model
Data class that represents all Tetris Block objects that have frozen into place.
GameControls.GameState - Enum Class in edu.uw.tcss.model
Specifies a game state for Tetris.
GameControls.IndividualPiece - Record Class in edu.uw.tcss.model
Data class that represents a single Tetris tetromino in a location on the Tetris board.
GameControls.Point - Record Class in edu.uw.tcss.model
Data class that represents a "point" on the Tetris game board.
GameEvent - Interface in edu.uw.tcss.model
Sealed interface representing type-safe events for the Tetris game's PropertyChangeListener framework.
GameEvent.CurrentPieceChanged - Record Class in edu.uw.tcss.model
Event fired when the current movable piece changes state.
GameEvent.FrozenBlocksChanged - Record Class in edu.uw.tcss.model
Event fired when the game's frozen blocks change state.
GameEvent.GameStateChanged - Record Class in edu.uw.tcss.model
Event fired when the game state changes.
GameEvent.NextPieceChanged - Record Class in edu.uw.tcss.model
Event fired when the next movable piece changes.
GameEvent.RowsCleared - Record Class in edu.uw.tcss.model
Event fired when one or more lines clear from the frozen blocks.
Game Loop (with Timer) - Section in package edu.uw.tcss.model
 
GameStateChanged(GameControls.GameState, GameControls.GameState, long) - Constructor for record class edu.uw.tcss.model.GameEvent.GameStateChanged
Creates an instance of a GameStateChanged record class.
getPropertyName() - Method in interface edu.uw.tcss.model.GameEvent
Returns the property name for this event type, used when registering property-specific listeners via PropertyChangeEnabledGameControls.addPropertyChangeListener(String, java.beans.PropertyChangeListener).
Getting Started - Section in package edu.uw.tcss.model
 

H

Handling User Input - Section in package edu.uw.tcss.model
 
hashCode() - Method in record class edu.uw.tcss.model.GameControls.FrozenBlocks
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.GameControls.IndividualPiece
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.GameControls.Point
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.GameEvent.CurrentPieceChanged
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.GameEvent.FrozenBlocksChanged
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.GameEvent.GameStateChanged
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.GameEvent.NextPieceChanged
Returns a hash code value for this object.
hashCode() - Method in record class edu.uw.tcss.model.GameEvent.RowsCleared
Returns a hash code value for this object.

I

I - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
A Block from an IPiece.
Important Implementation Details - Section in class edu.uw.tcss.model.TetrisGame
 
Important Notes - Section in package edu.uw.tcss.model
 
IndividualPiece(GameControls.Point[], GameControls.Block) - Constructor for record class edu.uw.tcss.model.GameControls.IndividualPiece
Creates an instance of a IndividualPiece record class.

J

J - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
A Block from a JPiece.

K

Key Classes - Section in package edu.uw.tcss.model
 

L

L - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
A Block from an LPiece.
left() - Method in interface edu.uw.tcss.model.GameControls
Try to move the movable piece left.
left() - Method in class edu.uw.tcss.model.TetrisGame
Try to move the movable piece left.
Listening to Events - Section in package edu.uw.tcss.model
 
location() - Method in record class edu.uw.tcss.model.GameControls.IndividualPiece
Returns the value of the location record component.

N

NEW - Enum constant in enum class edu.uw.tcss.model.GameControls.GameState
A new Tetris game has started.
newGame() - Method in interface edu.uw.tcss.model.GameControls
Places the game in GameState.NEW followed by placing the game into GameState.RUNNING.
newGame() - Method in class edu.uw.tcss.model.TetrisGame
Places the game in GameState.NEW followed by placing the game into GameState.RUNNING.
newState() - Method in record class edu.uw.tcss.model.GameEvent.GameStateChanged
Returns the value of the newState record component.
NextPieceChanged(GameControls.IndividualPiece, long) - Constructor for record class edu.uw.tcss.model.GameEvent.NextPieceChanged
Creates an instance of a NextPieceChanged record class.
now() - Static method in interface edu.uw.tcss.model.GameEvent
Helper method to get the current time.

O

O - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
A Block from an OPiece.
oldState() - Method in record class edu.uw.tcss.model.GameEvent.GameStateChanged
Returns the value of the oldState record component.
OVER - Enum constant in enum class edu.uw.tcss.model.GameControls.GameState
A Tetris game is OVER.
Overview - Section in package edu.uw.tcss.model
 

P

Pattern 1: Listen to All Events - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 
Pattern 2: Listen to Specific Events - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 
Pattern 3: Combined Approach - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 
pause() - Method in interface edu.uw.tcss.model.GameControls
Places the game into GameState.PAUSED.
pause() - Method in class edu.uw.tcss.model.TetrisGame
Places the game into GameState.PAUSED.
PAUSED - Enum constant in enum class edu.uw.tcss.model.GameControls.GameState
A tetris game is PAUSED.
Pausing and Resuming - Section in package edu.uw.tcss.model
 
piece() - Method in record class edu.uw.tcss.model.GameEvent.CurrentPieceChanged
Returns the value of the piece record component.
piece() - Method in record class edu.uw.tcss.model.GameEvent.NextPieceChanged
Returns the value of the piece record component.
Point(int, int) - Constructor for record class edu.uw.tcss.model.GameControls.Point
Creates an instance of a Point record class.
PropertyChangeEnabledGameControls - Interface in edu.uw.tcss.model
Allows implementing classes to leverage the PropertyChange framework of the Observer Design Pattern to inform interested parties of updates to the Tetris game state.

R

removePropertyChangeListener(PropertyChangeListener) - Method in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
Remove a PropertyChangeListener from the listener list.
removePropertyChangeListener(PropertyChangeListener) - Method in class edu.uw.tcss.model.TetrisGame
 
removePropertyChangeListener(String, PropertyChangeListener) - Method in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
Remove a PropertyChangeListener for a specific property.
removePropertyChangeListener(String, PropertyChangeListener) - Method in class edu.uw.tcss.model.TetrisGame
 
right() - Method in interface edu.uw.tcss.model.GameControls
Try to move the movable piece right.
right() - Method in class edu.uw.tcss.model.TetrisGame
Try to move the movable piece right.
rotateCCW() - Method in interface edu.uw.tcss.model.GameControls
Try to rotate the movable piece in the counter-clockwise direction.
rotateCCW() - Method in class edu.uw.tcss.model.TetrisGame
Try to rotate the movable piece in the counter-clockwise direction.
rotateCW() - Method in interface edu.uw.tcss.model.GameControls
Try to rotate the movable piece in the clockwise direction.
rotateCW() - Method in class edu.uw.tcss.model.TetrisGame
Try to rotate the movable piece in the clockwise direction.
RowsCleared(int, long) - Constructor for record class edu.uw.tcss.model.GameEvent.RowsCleared
Creates an instance of a RowsCleared record class.
RUNNING - Enum constant in enum class edu.uw.tcss.model.GameControls.GameState
A Tetris game is RUNNING.

S

S - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
A Block from an SPiece.
Singleton Pattern - Section in class edu.uw.tcss.model.TetrisGame
 
Starting a Game - Section in package edu.uw.tcss.model
 
step() - Method in interface edu.uw.tcss.model.GameControls
Advances the game by one 'step'.
step() - Method in class edu.uw.tcss.model.TetrisGame
Advances the game by one 'step'.

T

T - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
A Block from a TPiece.
TetrisGame - Class in edu.uw.tcss.model
The main implementation of a Tetris game.
TetrisGame() - Constructor for class edu.uw.tcss.model.TetrisGame
Creates a standard size Tetris game board (10 columns × 20 rows).
TetrisGame(int, int) - Constructor for class edu.uw.tcss.model.TetrisGame
Creates a custom size Tetris game board.
timestamp() - Method in record class edu.uw.tcss.model.GameEvent.CurrentPieceChanged
Returns the value of the timestamp record component.
timestamp() - Method in record class edu.uw.tcss.model.GameEvent.FrozenBlocksChanged
Returns the value of the timestamp record component.
timestamp() - Method in record class edu.uw.tcss.model.GameEvent.GameStateChanged
Returns the value of the timestamp record component.
timestamp() - Method in record class edu.uw.tcss.model.GameEvent.NextPieceChanged
Returns the value of the timestamp record component.
timestamp() - Method in record class edu.uw.tcss.model.GameEvent.RowsCleared
Returns the value of the timestamp record component.
timestamp() - Method in interface edu.uw.tcss.model.GameEvent
Returns the timestamp when this event was created.
togglePause() - Method in interface edu.uw.tcss.model.GameControls
Toggles the game into either GameState.RUNNING or GameState.PAUSED.
togglePause() - Method in class edu.uw.tcss.model.TetrisGame
Toggles the game into either GameState.RUNNING or GameState.PAUSED.
toString() - Method in record class edu.uw.tcss.model.GameControls.FrozenBlocks
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.GameControls.IndividualPiece
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.GameControls.Point
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.GameEvent.CurrentPieceChanged
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.GameEvent.FrozenBlocksChanged
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.GameEvent.GameStateChanged
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.GameEvent.NextPieceChanged
Returns a string representation of this record class.
toString() - Method in record class edu.uw.tcss.model.GameEvent.RowsCleared
Returns a string representation of this record class.
toString() - Method in class edu.uw.tcss.model.TetrisGame
Type Safety Benefits - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 

U

unPause() - Method in interface edu.uw.tcss.model.GameControls
Places the game into GameState.RUNNING.
unPause() - Method in class edu.uw.tcss.model.TetrisGame
Places the game into GameState.RUNNING.
Usage Patterns - Section in interface edu.uw.tcss.model.PropertyChangeEnabledGameControls
 

V

valueOf(String) - Static method in enum class edu.uw.tcss.model.GameControls.Block
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class edu.uw.tcss.model.GameControls.GameState
Returns the enum constant of this class with the specified name.
values() - Static method in enum class edu.uw.tcss.model.GameControls.Block
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class edu.uw.tcss.model.GameControls.GameState
Returns an array containing the constants of this enum class, in the order they are declared.

X

x() - Method in record class edu.uw.tcss.model.GameControls.Point
Returns the value of the x record component.

Y

y() - Method in record class edu.uw.tcss.model.GameControls.Point
Returns the value of the y record component.

Z

Z - Enum constant in enum class edu.uw.tcss.model.GameControls.Block
A Block from a ZPiece.
A B C D E F G H I J K L N O P R S T U V X Y Z 
All Classes and Interfaces|All Packages