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

Method addPiece

src/org/psnbtech/BoardPanel.java:181–194  ·  view source on GitHub ↗

Adds a piece to the game board. Note: Doesn't check for existing pieces, and will overwrite them if they exist. @param type The type of piece to place. @param x The x coordinate of the piece. @param y The y coordinate of the piece. @param rotation The rotation of the piece.

(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 1

updateGameMethod · 0.80

Calls 3

setTileMethod · 0.95
getDimensionMethod · 0.80
isTileMethod · 0.80

Tested by

no test coverage detected