Merge branch 'nuke'

This commit is contained in:
Matthew Bowra-Dean
2010-03-07 00:05:45 +13:00
7 changed files with 115 additions and 8 deletions

View File

@@ -20,6 +20,7 @@
using System.Collections.Generic;
using System.Linq;
using OpenRA.Effects;
namespace OpenRA.Traits
{
@@ -56,8 +57,8 @@ namespace OpenRA.Traits
if (Owner != Owner.World.LocalPlayer)
Sound.Play("alaunch1.aud");
// TODO: FIRE ZE MISSILES
//w.Add(new NukeLaunch(silo));
//FIRE ZE MISSILES
w.Add(new NukeLaunch(silo, Info.MissileWeapon, order.TargetLocation));
});
Game.controller.CancelInputMode();

View File

@@ -33,6 +33,7 @@ namespace OpenRA.Traits
public readonly string[] Prerequisites = { };
public readonly int TechLevel = -1;
public readonly bool GivenAuto = true;
public readonly string MissileWeapon = "";
public abstract object Create(Actor self);
}