public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.hitObjectsCollisionGroupStrings[collisionData.hitObjectsCollisionGroupStrings.Count - 1] == "gift")
     {
         this.isShootingRacket = true;
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.hitObjectsCollisionGroupStrings.Contains(UnpassableBlock.CollisionGroupString)|| collisionData.hitObjectsCollisionGroupStrings.Contains(Racket.CollisionGroupString))
     {
         base.RespondToCollision(collisionData);
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.hitObjectsCollisionGroupStrings.Contains(UnstoppableBall.CollisionGroupString))
     {
         this.IsDestroyed = true;
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.hitObjectsCollisionGroupStrings.Contains("gift"))
     {
         hasCollectedGift = true;
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.hitObjectsCollisionGroupStrings.Contains("indestructibleBlock") || collisionData.hitObjectsCollisionGroupStrings.Contains("racket"))
     {
         base.RespondToCollision(collisionData);
     }
 }
Beispiel #6
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (var c in collisionData.hitObjectsCollisionGroupStrings)
     {
         if ((c==UnpassableBlock.CollisionGroupString) || (c==Racket.CollisionGroupString))
             base.RespondToCollision(collisionData);
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.hitObjectsCollisionGroupStrings[0] == IndestructibleBlock.CollisionGroupString ||
         collisionData.hitObjectsCollisionGroupStrings[0] == Racket.CollisionGroupString)
     {
         base.RespondToCollision(collisionData);
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.HitObjectsCollisionGroupStrings[0] == "indestructibleBlock" ||
         collisionData.HitObjectsCollisionGroupStrings[0] == "racket")
     {
         base.RespondToCollision(collisionData);
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     List<string> collisionObjects = collisionData.hitObjectsCollisionGroupStrings;
     if (collisionObjects.Contains(IndestructibleBlock.CollisionGroupString) ||
         collisionObjects.Contains(Racket.CollisionGroupString))
     {
         base.RespondToCollision(collisionData);
     }
 }
        public override void RespondToCollision(CollisionData collisionData)
        {
            base.RespondToCollision(collisionData);

            if (collisionData.hitObjectsCollisionGroupStrings.First() == "gift")
            {
                shooting = true;
            }
        }
     public override void RespondToCollision(CollisionData collisionData)
     {
         //This ball should change direction only if it hits indestructible wall or user's racket
         if (collisionData.hitObjectsCollisionGroupStrings.Contains(UnpassableBlock.CollisionGroupString) ||
 collisionData.hitObjectsCollisionGroupStrings.Contains(Racket.CollisionGroupString))
         {
             base.RespondToCollision(collisionData);
         }
     }
 public override void RespondToCollision(CollisionData collisionData)
 {
     // the following code gives possibility an Unpassable Block to be destroyed by Explosion Block's Explosion Object!
     foreach (string colisionObj in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (colisionObj == ExplodingObject.CollisionGroupString)
                  base.RespondToCollision(collisionData);
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (string item in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (item.Equals("indestructibleBlock") || (item.Equals("unpassableBlock") || item.Equals("racket")))
         {
             base.RespondToCollision(collisionData);
         }
     }
 }
Beispiel #14
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     for (int i = 0; i < collisionData.hitObjectsCollisionGroupStrings.Count; i++)
     {
         if (collisionData.hitObjectsCollisionGroupStrings[i] != "ball")
         {
             this.IsDestroyed = true;
         }
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (var item in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (item == "UnstoppableBall")
         {
             this.IsDestroyed = true;
         }
     }
 }
Beispiel #16
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (string collisionObject in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (collisionObject == "gift")
         {
             this.bulletsLeft += Gift.BulletsBonus;
         }
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (var collisionObjectString in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (collisionObjectString == "unstoppable ball")
         {
             this.IsDestroyed = true;
         }
     }
 }
Beispiel #18
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (var collisionItem in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (collisionItem.Equals(Racket.CollisionGroupString))
         {
             this.IsDestroyed = true;
         }
     }
 }
Beispiel #19
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (string collosionObject in collisionData.hitObjectsCollisionGroupStrings) 
     {
         if (collosionObject == "racket") 
         {
             this.IsDestroyed = true;
         } 
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     for (int i = 0; i < collisionData.hitObjectsCollisionGroupStrings.Count; i++)
     {
         if (collisionData.hitObjectsCollisionGroupStrings[i] != "block")
         {
             base.RespondToCollision(collisionData);
         }
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     for (int i = 0; i < collisionData.hitObjectsCollisionGroupStrings.Count; i++)
     {
         if (collisionData.hitObjectsCollisionGroupStrings[i] == "unpassableBlock" || collisionData.hitObjectsCollisionGroupStrings[i] == "racket")
         {
             base.RespondToCollision(collisionData);
         }
     }
 }
Beispiel #22
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (var cgroup in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (cgroup == "unspassableBlock")
         {
             base.RespondToCollision(collisionData);
             break;
         }
     }
 }
Beispiel #23
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     List<string> hitObjects = collisionData.hitObjectsCollisionGroupStrings;
     foreach (var hit in hitObjects)
     {
         if (hit == Racket.CollisionGroupString)
         {
             this.IsDestroyed = true;
         }
     }            
 }
Beispiel #24
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.hitObjectsCollisionGroupStrings.Contains(Gift.CollisionGroupString) )
     {
         this.shoots++;
     }
     else
     {
         base.RespondToCollision(collisionData);
     }
 }
Beispiel #25
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.CollisionForceDirection.Row * this.Speed.Row < 0)
     {
         this.Speed.Row *= -1;
     }
     if (collisionData.CollisionForceDirection.Col * this.Speed.Col < 0)
     {
         this.Speed.Col *= -1;
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     List<string> collisionObjects = collisionData.hitObjectsCollisionGroupStrings;
     foreach (var item in collisionObjects)
     {
         if (item.Equals(UnpassableBlock.CollisionGroupString) || item.Equals(Racket.CollisionGroupString) || item.Equals(IndestructibleBlock.CollisionGroupString))
         {
             base.RespondToCollision(collisionData);                               
         }
     }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     List<string> collisionObjects = collisionData.hitObjectsCollisionGroupStrings;
     foreach (var item in collisionObjects)
     {
         if (item.Equals("unpassableBlock") || item.Equals("racket"))
         {
             base.RespondToCollision(collisionData);
         }
     }
 }
Beispiel #28
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     //if (collisionData.CollisionForceDirection.Row * this.Speed.Row < 0)
     //{
     //    this.Speed.Row *= -1;
     //}
     //if (collisionData.CollisionForceDirection.Col * this.Speed.Col < 0)
     //{
     //    this.Speed.Col *= -1;
     //}
 }
Beispiel #29
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     foreach (var cgroup in collisionData.hitObjectsCollisionGroupStrings)
     {
         if (cgroup != "racket")
         {
             this.IsDestroyed = true;
             break;
         }
     }
     
 }
Beispiel #30
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     if (collisionData.CollisionForceDirection.Row * this.Speed.Row < 0
             && collisionData.hitObjectsCollisionGroupStrings.Contains("Ublock"))
         {
             this.Speed.Row *= -1;
         }
         if (collisionData.CollisionForceDirection.Col * this.Speed.Col < 0
              && collisionData.hitObjectsCollisionGroupStrings.Contains("Ublock"))
         {
             this.Speed.Col *= -1;
         }
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     // nothing to do - this is indestructible block
 }
Beispiel #32
0
 public override void RespondToCollision(CollisionData collisionData)
 {
 }
Beispiel #33
0
 public virtual void RespondToCollision(CollisionData collisionData)
 {
 }
 public override void RespondToCollision(CollisionData collisionData)
 {
     this.IsDestroyed = true;
     this.ProduceObjects();
 }
Beispiel #35
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     this.hitRacket   = true;
     base.IsDestroyed = true;
 }
Beispiel #36
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     this.IsDestroyed = true;
 }
Beispiel #37
0
 public override void RespondToCollision(CollisionData collisionData)
 {
     //base.RespondToCollision(collisionData);
 }