updateState: function updateState() {
     switch (this.actor.state) {
         case ActorPlayingState.Normal:
             this.cardInfo.active = true;
             this.spCardInfo.spriteFrame = Game.instance.assetMng.texCardInfo;
             this.updatePoint();
             break;
         case ActorPlayingState.Bust:
             var min = Utils.getMinMaxPoint(this.actor.cards).min;
             this.labelCardInfo.string = '爆牌(' + min + ')';
             this.spCardInfo.spriteFrame = Game.instance.assetMng.texBust;
             this.cardInfo.active = true;
             this.animFX.show(true);
             this.animFX.playFX('bust');
             this.resetCountdown();
             break;
         case ActorPlayingState.Stand:
             var max = Utils.getMinMaxPoint(this.actor.cards).max;
             this.labelCardInfo.string = '停牌(' + max + ')';
             this.spCardInfo.spriteFrame = Game.instance.assetMng.texCardInfo;
             this.resetCountdown();
             // this.updatePoint();
             break;
     }
 }
Beispiel #2
0
 get: function get() {
     var cards = this.holeCard ? [this.holeCard].concat(this.cards) : this.cards;
     var minMax = Utils.getMinMaxPoint(cards);
     return minMax.max;
 },