ChessPos class

Chess coordinate in a game board

Constructors

ChessPos(int x, int y)
constructor pos by x and y
ChessPos.fromCode(String code)
constructor from a code position
ChessPos.tlOrigin(int x, int y)
constructor pos by x and flipped y

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x int
Lateral coordinate
getter/setter pair
y int
Longitudinal coordinate
getter/setter pair

Methods

copy() ChessPos
A copy of position
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCode() String
trans to code position
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override