public static void Explode(Player p) { Explosion xpl = new Explosion(p.level, p.pos.x, p.pos.y, p.pos.z, (new Random()).Next(5, 10)); xpl.DoExplosionA(); xpl.DoExplosionB(); }
public void Explode() { Explosion xpl = new Explosion(this.level, this.pos.x, this.pos.y, this.pos.z, (new Random()).Next(5, 10)); xpl.DoExplosionA(); xpl.DoExplosionB(); }
public static bool DestroyTNT(Player a, BCS b) { a.level.BlockChange((int)b.pos.x, (int)b.pos.y, (int)b.pos.z, 0, 0); Explosion exp = new Explosion(a.level, b.pos.x + .5, b.pos.y + .5, b.pos.z + .5, 4); exp.DoExplosionA(); exp.DoExplosionB(); return false; }