JanggiSoldier

abstract class JanggiSoldier(player: Player, direction: Direction) : Piece2D, Pawn

Represents a soldier in Janggi

Constructors

JanggiSoldier
Link copied to clipboard
fun JanggiSoldier(player: Player, direction: Direction)

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

BlueSoldier
Link copied to clipboard
RedSoldier
Link copied to clipboard