XiangqiElephant

abstract class XiangqiElephant(player: Player, river: Region2D) : Piece2D

Represents an elephant in Xiangqi

Constructors

XiangqiElephant
Link copied to clipboard
fun XiangqiElephant(player: Player, river: 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.RestrictedDestination>
that corresponds to the piece
player
Link copied to clipboard
open override val player: Player
the player that owns the piece

Inheritors

XiangqiBlueElephant
Link copied to clipboard
XiangqiRedElephant
Link copied to clipboard