htwdd.chessgame.server.util / QueenMovementUtility
QueenMovementUtility
class QueenMovementUtility :
MovementUtility
Movement utility class for the queen piece Combined the rules of bishop and rook
Author Felix Dimmel
Constructors
<init> | QueenMovementUtility() Movement utility class for the queen piece Combined the rules of bishop and rook |
Functions
getMovementFields | fun getMovementFields(movementFields: HashSet < Pair < Int , Int >>, row: Int , col: Int , match: Match ): Unit Calculate all possible movement fields for a queen piece |
getThreadedFields | fun getThreadedFields(threatedFields: HashSet < Pair < Int , Int >>, row: Int , col: Int , match: Match ): Unit Calculate all possible threated fields for a queen piece |
Inherited 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 |