ChessItem class
A chess item at game board
Constructors
- ChessItem.new(String code, {ChessPos? position})
- constructor by a code and position
- ChessItem.blank({ChessPos? position})
- constructor a blank item
Properties
- code → String
-
get code of this item
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBlank → bool
-
is a black item
no setter
- isDie ↔ bool
-
whether is dead
getter/setter pair
- position ↔ ChessPos
-
position of this item
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- team → int
-
get team of this code
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited