UNPKG

cardation

Version:

fundation of card games, card model

21 lines (20 loc) 561 B
import Suit from '../suit/Suit'; import SuitCard from './SuitCard'; declare class NumberCard extends SuitCard { private _suit; private _point; private _rank; constructor(suit: Suit, rank: number, point?: number); getCardId(): string; getPoint(): number; getRank(): number; getCardSuit(): Suit; setPoint(point: number): void; toString(): string; /** * Convert the card to a colored string, which can be printed to the console. * @returns {string} */ getGraph(): string; } export default NumberCard;