Moved speed from Mobile/Heli/Plane to Unit.

This commit is contained in:
Bob
2010-01-12 21:22:28 +13:00
parent 901d48edfa
commit a0bf4f1e0f
7 changed files with 26 additions and 59 deletions

View File

@@ -7,8 +7,6 @@ namespace OpenRa.Game.Traits
{
class HelicopterInfo : ITraitInfo
{
public readonly int Speed = 0;
public object Create(Actor self) { return new Helicopter(self); }
}

View File

@@ -7,9 +7,6 @@ namespace OpenRa.Game.Traits
{
class MobileInfo : ITraitInfo
{
public readonly int ROT = 0;
public readonly int Speed = 0;
public object Create(Actor self) { return new Mobile(self); }
}

View File

@@ -5,8 +5,6 @@ namespace OpenRa.Game.Traits
{
class PlaneInfo : ITraitInfo
{
public readonly int Speed = 0;
public object Create(Actor self) { return new Plane(self); }
}

View File

@@ -5,6 +5,7 @@ namespace OpenRa.Game.Traits
class UnitInfo : OwnedActorInfo, ITraitInfo
{
public readonly int ROT = 0;
public readonly int Speed = 0;
public object Create( Actor self ) { return new Unit( self ); }
}