MCPcopy Create free account
hub / github.com/PSNB92/Tetris / isValidAndEmpty

Method isValidAndEmpty

src/org/psnbtech/BoardPanel.java:145–171  ·  view source on GitHub ↗

Determines whether or not a piece can be placed at the coordinates. @param type THe type of piece to use. @param x The x coordinate of the piece. @param y The y coordinate of the piece. @param rotation The rotation of the piece. @return Whether or not the position is valid.

(TileType type, int x, int y, int rotation)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

paintComponentMethod · 0.95
keyPressedMethod · 0.80
updateGameMethod · 0.80
spawnPieceMethod · 0.80
rotatePieceMethod · 0.80

Calls 7

isOccupiedMethod · 0.95
getLeftInsetMethod · 0.80
getDimensionMethod · 0.80
getRightInsetMethod · 0.80
getTopInsetMethod · 0.80
getBottomInsetMethod · 0.80
isTileMethod · 0.80

Tested by

no test coverage detected