public Explosion(World world, Point position, SpriteSheet sprite, ExplosionHeight height, string name = "default") { World = world; Position = position; IsAlive = true; Sprite = sprite; Height = height; SpriteSequenceName = name; CreatedTicks = world.Ticks; ExplosionLength = sprite.SpriteSequences.Where(s => s.Name == name).First().Length *FrameRepeat; }
public ExplosionBig(World world, Point position, ExplosionHeight height) : base(world, position, Sprites.ExplosionBig, height) { }
public ShellExplosion(World world, Point position, ExplosionHeight height) : base(world, position, Sprites.ExplosionSmall, height) { }
public NapalmExplosion(World world, Point position, ExplosionHeight explosionHeight) : base(world, position, Sprites.Napalm2, ExplosionHeight.Ground) { }
public BulletImpact(World world, Point position, ExplosionHeight explosionHeight) : base(world, position, Sprites.BulletImpact, explosionHeight) { }