类 Position
java.lang.Object
me.magicall.game.sub.chess.Position
- 所有已实现的接口:
Comparable<Position>,EventTarget,Coordinate
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Position[][]buildPositions(int rows, int columns) intdown(int step) booleanintint[]intgetRow()inthashCode()booleanisHigherThan(Position other) booleanisLefterThan(Position other) booleanisLowerThan(Position other) booleanisRighterThan(Position other) booleanisSameColumn(Position other) booleanleft(int step) right(int step) toString()up(int step)
-
构造器详细资料
-
Position
public Position(int row, int column)
-
-
方法详细资料
-
buildPositions
-
getRow
public int getRow() -
getColumn
public int getColumn() -
compareTo
- 指定者:
compareTo在接口中Comparable<Position>
-
getCoordinateIndexes
public int[] getCoordinateIndexes()- 指定者:
getCoordinateIndexes在接口中Coordinate
-
isSameColumn
-
isLefterThan
-
isRighterThan
-
isSameRow
-
isHigherThan
-
isLowerThan
-
left
-
right
-
up
-
down
-
add
-
toString
-
hashCode
public int hashCode() -
equals
-