Esempio n. 1
0
        protected override void InternalInitializeLayer(World world, ALevelNode levelNode)
        {
            this.NotifBehaviorsList = new List <IBoardNotifBehavior>();

            this.CurrentNotifBehavior = null;

            this.cardAwakened = null;
        }
Esempio n. 2
0
        public void NotifyCardAwakened(CardEntity cardToNotify, int valueBeforeAwakened)
        {
            CardEntityAwakenedDecorator cardEntity = new CardEntityAwakenedDecorator(this, cardToNotify, valueBeforeAwakened);

            this.cardAwakened = cardEntity;

            this.AddEntityToLayer(cardEntity);

            this.CardAwakened?.Invoke(cardEntity);
        }
Esempio n. 3
0
        public void RemoveCardAwakened()
        {
            if (this.cardAwakened != null)
            {
                this.CardAwakened?.Invoke(null);

                this.RemoveEntityFromLayer(this.cardAwakened);

                this.cardAwakened = null;
            }
        }