Exemple #1
0
 public void Initialize(Texture2D texture, Vector2 position, DynUtils.ObjectType type)
 {
     animation = new DynCAnimation();
     animation.Initialize(texture, position, 16, 16, 2, 250, true);
     if (type == DynUtils.ObjectType.ExplosionBonus || type == DynUtils.ObjectType.BombBonus)
         this.type = type;
     active = true;
 }
Exemple #2
0
 public void OnCollision(DynUtils.ObjectType o)
 {
     switch (o)
     {
         case DynUtils.ObjectType.Explosion:
             lifeTime = 0;
             break;
     }
 }
Exemple #3
0
 public void OnCollision(DynUtils.ObjectType type)
 {
     switch (type)
     {
         case DynUtils.ObjectType.Explosion:
             this.active = false;
             break;
         case DynUtils.ObjectType.Player:
             this.active = false;
             break;
     }
 }
Exemple #4
0
 public void OnCollision(DynUtils.ObjectType c)
 {
     switch (c)
     {
         case DynUtils.ObjectType.Explosion:
             die();
             break;
         case DynUtils.ObjectType.Monster:
             lastMove *= -1;
             break;
     }
 }
Exemple #5
0
 public void OnCollision(DynUtils.ObjectType o)
 {
     return;
 }
Exemple #6
0
 public void OnCollision(DynUtils.ObjectType c)
 {
     switch (c)
     {
         case DynUtils.ObjectType.BombBonus:
             ++bombsLeft;
             break;
         case DynUtils.ObjectType.ExplosionBonus:
             ++bombPower;
             break;
         case DynUtils.ObjectType.Monster:
             die();
             break;
         case DynUtils.ObjectType.Explosion:
             die();
             break;
     }
 }