XiangqiSoldier

abstract class XiangqiSoldier(player: Player, direction: Direction, acrossRiver: Region2D) : Piece2D, Pawn

Represents a soldier in Xiangqi

Constructors

XiangqiSoldier
Link copied to clipboard
fun XiangqiSoldier(player: Player, direction: Direction, acrossRiver: Region2D)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getSymbol
Link copied to clipboard
open override fun getSymbol(): String
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

moveGenerators
Link copied to clipboard
open override val moveGenerators: List<MoveGenerator2D>
that corresponds to the piece
player
Link copied to clipboard
open override val player: Player
the player that owns the piece

Inheritors

XiangqiBlueSoldier
Link copied to clipboard
XiangqiRedSoldier
Link copied to clipboard