Uses of Record Class
sac.model.Point
Packages that use Point
Package
Description
The model for a Tetris game.
Provides the actual game logic.
Provides rotation strategies.
Some useful utilities.
-
Uses of Point in sac.model
Modifier and TypeFieldDescriptionPiece.body
Sorted representation of the points that make up the piece.Modifier and TypeMethodDescriptionCalculate the difference between two points.Board.dropPosition
(Piece piece, Point position) Calculate the expected position of `piece` would be placed.Point.offset
(int x, int y) Move this point to a new place with (x, y) as new origin.Move this point to a new place with `origin` as new origin.Modifier and TypeMethodDescriptionModel.getGhostPiecePositions()
Calculate the ghost piece of current piece.Modifier and TypeMethodDescriptionint
Perform x-major comparison.Calculate the difference between two points.Board.dropPosition
(Piece piece, Point position) Calculate the expected position of `piece` would be placed.Check what type of piece occupies the position.boolean
Board.isValidPoint
(Point point) Move this point to a new place with `origin` as new origin.Board.placePiece
(Piece piece, Point position) Place a piece at a specific position. -
Uses of Point in sac.model.gamemodes
Methods in sac.model.gamemodes that return PointModifier and TypeMethodDescriptionDefaultCore.getSpawnPosition
(Piece piece) Spawn the piece in the middle of the board.GameCore.getSpawnPosition
(Piece piece) Compute the spawn position of a piece in terms of its left bottom corner.GameMode.getSpawnPosition
(Piece piece) -
Uses of Point in sac.model.rotations
Methods in sac.model.rotations that return PointModifier and TypeMethodDescriptionstatic Point
SuperRotationSystem.getOffsetTestData
(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest, int testCnt) BasicRotationState.getRotationOffset
(Piece activePiece, Model.MoveType moveType) RotationState.getRotationOffset
(Piece activePiece, Model.MoveType moveType) SuperRotationSystem.SuperRotationState.getRotationOffset
(Piece activePiece, Model.MoveType moveType) static Point
SuperRotationSystem.getTrueRotationOffset
(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest) -
Uses of Point in sac.utils
Modifier and TypeMethodDescriptionUtility.parsePointsString
(String string) Convert to a space-seperated string of coordinates to points.