import { IActionCard } from '../ICard' ; import { IProjectCard } from '../IProjectCard' ; import { Tags } from '../Tags' ; import { Card } from '../Card' ; import { CardType } from '../CardType' ; import { Player } from '../../Player' ; import { CardName } from '../../CardName' ; import { CardRenderer } from '../render/CardRenderer' ; export class DevelopmentCenter extends Card implements IActionCard , IProjectCard { constructor ( ) { super ( { cardType : CardType . ACTIVE , name : CardName . DEVELOPMENT_CENTER , tags : [ Tags . SCIENCE , Tags . BUILDING ] , cost : 11 , metadata : { cardNumber : '014' , renderData : CardRenderer . builder ( ( b ) => { b . action ( 'Spend 1 Energy to draw a card.' , ( eb ) => { eb . energy ( 1 ) . startAction . cards ( 1 ) ; } ) ; } ) , } , } ) ; } public play ( ) { return undefined ; } public canAct ( player ) { return player . energy > 0 ; } public action ( player ) { player . energy -- ; player . drawCard ( ) ; return undefined ; } }