import { IProjectCard } from '../IProjectCard' ; import { IActionCard , IResourceCard } from '../ICard' ; import { Card } from '../Card' ; import { VictoryPoints } from '../ICard' ; import { CardName } from '../../CardName' ; import { CardType } from '../CardType' ; import { ResourceType } from '../../ResourceType' ; import { Tags } from '../Tags' ; import { Player } from '../../Player' ; import { CardRequirements } from '../CardRequirements' ; import { CardRenderer } from '../render/CardRenderer' ; export class Penguins extends Card implements IActionCard , IProjectCard , IResourceCard { constructor ( ) { super ( { cardType : CardType . ACTIVE , name : CardName . PENGUINS , tags : [ Tags . ANIMAL ] , cost : 7 , resourceType : ResourceType . ANIMAL , victoryPoints : VictoryPoints . resource ( 1 , 1 ) , requirements : CardRequirements . builder ( ( b ) => b . oceans ( 8 ) ) , metadata : { cardNumber : '212' , renderData : CardRenderer . builder ( ( b ) => { b . action ( 'Add 1 Animal to this card.' , ( eb ) => { eb . empty ( ) . startAction . animals ( 1 ) ; } ) . br ; b . vpText ( '1 VP for each animal on this card.' ) ; } ) , description : 'Requires 8 oceans.' , } , } ) ; } public resourceCount = 0 ; public play ( ) { return undefined ; } public canAct ( ) { return true ; } public action ( player ) { player . addResourceTo ( this ) ; return undefined ; } }