Exemple #1
0
 public override void collide(object sender, CActor collider)
 {
     if (collider is Player.CPlayer)
     {
         if (!INVINCIBLE_STATES.Contains(collider.state))
         {
             collider.shock();
             collider.dealDamange(2, collider);
         }
     }
 }
Exemple #2
0
        public override void collide(object sender, CActor collider)
        {
            _killMe = true;

            if (collider is Player.CPlayer)
            {
                if (!INVINCIBLE_STATES.Contains(collider.state))
                {
                    collider.dealDamange(4, collider);
                }
            }
        }
Exemple #3
0
        public override void collide(object sender, CActor collider)
        {
            base.collide(sender, collider);

            if (collider is Player.CPlayer)
            {
                if (!INVINCIBLE_STATES.Contains(collider.state))
                {
                    collider.freeze();
                    collider.dealDamange(1, collider);
                }
            }
        }
Exemple #4
0
        public override void collide(object sender, CActor collider)
        {
            base.collide(sender, collider);
            _hitBox.destroy();
            _hitBox = null;
            _state  = ACTOR_STATES.EXPLODE;
            swapImage(_BREAKING);

            if (collider is Player.CPlayer)
            {
                if (!INVINCIBLE_STATES.Contains(collider.state))
                {
                    collider.dealDamange(1, collider);
                }
            }
        }