class PukerPlayContainer extends egret . DisplayObjectContainer { /**
     * 标准扑克容器，控制自己的牌
     * 这个容器支持点击选牌操作，可以用来做斗地主、跑得快等
     * arrays 扑克id的数组
     * x 扑克的x坐标
     */ public constructor ( arrays ) { super ( ) ; let pc = RES . getRes ( "layout_json" ) . pukerPlayerContainer ; this . x = pc . x ; this . y = pc . y ; this . width = pc . width ; this . height = pc . height ; this . show ( arrays ) ; } private show ( arrays ) { let p = RES . getRes ( "layout_json" ) . puker ; let x = ( 20 - arrays . length ) * 0.5 * p . pukerPlaySpace ; for ( var i = 0 ; i < arrays . length ; i ++ ) { let puker = new Puker ( arrays [ i ] , x + i * p . pukerPlaySpace , 0 , p . pukerPlayWidth , p . pukerPlayHeight ) ; this . addChild ( puker ) ; } } }