import { IProjectCard } from './../IProjectCard' ; import { Tags } from './../Tags' ; import { Card } from '../Card' ; import { CardType } from './../CardType' ; import { Player } from '../../Player' ; import { IActionCard } from './../ICard' ; import { CardName } from '../../CardName' ; import { CardRequirements } from '../CardRequirements' ; import { CardRenderer } from '../render/CardRenderer' ; export class SubCrustMeasurements extends Card implements IActionCard , IProjectCard { constructor ( ) { super ( { cardType : CardType . ACTIVE , name : CardName . SUB_CRUST_MEASUREMENTS , tags : [ Tags . SCIENCE , Tags . BUILDING , Tags . EARTH ] , cost : 20 , requirements : CardRequirements . builder ( ( b ) => b . tag ( Tags . SCIENCE , 2 ) ) , victoryPoints : 2 , metadata : { cardNumber : 'X29' , renderData : CardRenderer . builder ( ( b ) => { b . action ( 'Draw a card.' , ( eb ) => { eb . empty ( ) . startAction . cards ( 1 ) ; } ) ; } ) , description : 'Requires 2 science tags.' , } , } ) ; } public play ( ) { return undefined ; } public canAct ( ) { return true ; } public action ( player ) { player . drawCard ( ) ; return undefined ; } }