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; }
public void OnCollision(DynUtils.ObjectType o) { switch (o) { case DynUtils.ObjectType.Explosion: lifeTime = 0; break; } }
public void OnCollision(DynUtils.ObjectType type) { switch (type) { case DynUtils.ObjectType.Explosion: this.active = false; break; case DynUtils.ObjectType.Player: this.active = false; break; } }
public void OnCollision(DynUtils.ObjectType c) { switch (c) { case DynUtils.ObjectType.Explosion: die(); break; case DynUtils.ObjectType.Monster: lastMove *= -1; break; } }
public void OnCollision(DynUtils.ObjectType o) { return; }
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; } }