add IonCannon power

This commit is contained in:
Chris Forbes
2010-03-23 20:14:35 +13:00
parent aa3a6d07e7
commit 4fc8f32b9b
5 changed files with 155 additions and 7 deletions

View File

@@ -29,13 +29,13 @@ namespace OpenRA.Effects
Animation anim;
int2 pos;
public Explosion( World world, int2 pixelPos, int style, bool isWater)
public Explosion(World world, int2 pixelPos, int style, bool isWater)
{
this.pos = pixelPos;
var variantSuffix = isWater ? "w" : "";
anim = new Animation("explosion");
anim.PlayThen(style.ToString() + variantSuffix,
() => world.AddFrameEndTask(w => w.Remove(this)));
anim.PlayThen(style.ToString() + variantSuffix,
() => world.AddFrameEndTask(w => w.Remove(this)));
}
public void Tick( World world ) { anim.Tick(); }