コード例 #1
0
 protected virtual void OnNotifBehaviorEnded(IBoardNotifBehavior obj)
 {
     lock (this.objectLock)
     {
         this.CurrentActiveBehavior = null;
     }
 }
コード例 #2
0
        public override void InitializeLayer(IAIObjectFactory factory)
        {
            base.InitializeLayer(factory);

            this.CardFocused  = null;
            this.CardAwakened = null;

            this.CurrentActiveBehavior = null;
        }
コード例 #3
0
        protected virtual void OnNotifBehaviorStarted(IBoardNotifBehavior obj)
        {
            lock (this.objectLock)
            {
                if (obj.IsThereBehaviorLabel)
                {
                    ACardNotifBehavior cardNotifBehavior = obj as ACardNotifBehavior;

                    this.CurrentActiveBehavior = new ActiveCardBehavior(cardNotifBehavior.GetType(), cardNotifBehavior.NbBehaviorUse, cardNotifBehavior.StateValue, cardNotifBehavior.OwnerCardEntity.Card.Name);
                }
            }
        }