htwdd.chessgame.server.util / KnightMovementUtility
KnightMovementUtility
class KnightMovementUtility : MovementUtility
Movement utility class for the knight piece
Author Felix Dimmel
Since 1.0.0
Constructors
| <init> | KnightMovementUtility()Movement utility class for the knight piece |
Functions
| getMovementFields | fun getMovementFields(movementFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): UnitCalculate all possible movement fields for a knight piece |
| getThreadedFields | fun getThreadedFields(threatedFields: HashSet<Pair<Int, Int>>, row: Int, col: Int, match: Match): UnitCalculate all possible threated fields for a knight 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 |