Esempio n. 1
0
        public void DamageStateChanged(Actor self, AttackInfo e)
        {
            UpdateState();
            if (northNeighbour != null)
            {
                northNeighbour.UpdateState();
            }
            if (southNeighbour != null)
            {
                southNeighbour.UpdateState();
            }

            // Need to update the neighbours neighbour to correctly
            // display the broken shore hack
            if (Info.ShorePieces.Contains(Type))
            {
                if (northNeighbour != null && northNeighbour.northNeighbour != null)
                {
                    northNeighbour.northNeighbour.UpdateState();
                }
                if (southNeighbour != null && southNeighbour.southNeighbour != null)
                {
                    southNeighbour.southNeighbour.UpdateState();
                }
            }
        }
Esempio n. 2
0
 public void DamageStateChanged(Actor self, AttackInfo e)
 {
     UpdateState();
     if (northNeighbour != null)
     {
         northNeighbour.UpdateState();
     }
     if (southNeighbour != null)
     {
         southNeighbour.UpdateState();
     }
 }