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): UnitCalculate all possible movement fields for a queen piece |
| getThreadedFields | fun getThreadedFields(threatedFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): UnitCalculate all possible threated fields for a queen piece |
Inherited Functions
| getFilteredMovementFields | fun getFilteredMovementFields(movementFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): UnitFilters movement fields Remove fields which cause a check |