King class

Implentation class for the kings.

Inheritance

Constructors

King({required bool isWhite})

Properties

alreadyMoved bool
read / write
hashCode int
The hash code for this object.
read-onlyinherited
isWhite bool
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
userData UserData
finalinherited

Methods

color() bool
inherited
getImg() String
inherited
getValue() int
inherited
isEmpty() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
possibleMovements(int x, int y, List<List<Piece>> board, bool reversedBoard, List<List<int>> lastMovement) List<List<int>>
override
toString() String
A string representation of this object.
inherited

Operators

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