htwdd.chessgame.server.util / MovementUtility
MovementUtility
abstract class MovementUtility :
Movement
Abstract class for piece movement
Author Felix Dimmel
Since 1.0.0
Constructors
<init> | MovementUtility() Abstract class for piece movement |
Functions
getFilteredMovementFields | fun getFilteredMovementFields(movementFields: HashSet < Pair < Int , Int >>, row: Int , col: Int , match: Match ): Unit Filters movement fields Remove fields which cause a check |
Inherited Functions
getMovementFields | abstract fun getMovementFields(movementFields: HashSet < Pair < Int , Int >>, row: Int , col: Int , match: Match ): Unit Calculate all possible movement fields for a special piece |
getThreadedFields | abstract fun getThreadedFields(threatedFields: HashSet < Pair < Int , Int >>, row: Int , col: Int , match: Match ): Unit Calculate all possible threated fields for a special piece |
Inheritors
BishopMovementUtility | class BishopMovementUtility : MovementUtility Movement utility class for the bishop piece |
KingMovementUtility | class KingMovementUtility : MovementUtility Movement utility class for the king piece |
KnightMovementUtility | class KnightMovementUtility : MovementUtility Movement utility class for the knight piece |
PawnMovementUtility | class PawnMovementUtility : MovementUtility Movement utility class for the pawn piece |
QueenMovementUtility | class QueenMovementUtility : MovementUtility Movement utility class for the queen piece Combined the rules of bishop and rook |
RookMovementUtility | class RookMovementUtility : MovementUtility Movement utility class for the rook piece |