Helicopter..

This commit is contained in:
Chris Forbes
2010-01-10 13:50:46 +13:00
parent 1c1b0be8bb
commit aeda044f83
5 changed files with 21 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ using OpenRa.Game.GameRules;
namespace OpenRa.Game.Traits
{
class HelicopterInfo : ITraitInfo
{
public object Create(Actor self) { return new Helicopter(self); }
}
class Helicopter : IIssueOrder, IResolveOrder, IMovement
{
public IDisposable reservation;

View File

@@ -2,6 +2,11 @@
namespace OpenRa.Game.Traits
{
class InvisibleToOthersInfo : ITraitInfo
{
public object Create(Actor self) { return new InvisibleToOthers(self); }
}
class InvisibleToOthers : IRenderModifier
{
public InvisibleToOthers(Actor self) { }

View File

@@ -5,6 +5,11 @@ using System.Text;
namespace OpenRa.Game.Traits
{
class IronCurtainInfo : ITraitInfo
{
public object Create(Actor self) { return new IronCurtain(self); }
}
class IronCurtain
{
public IronCurtain(Actor self) {}

View File

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

View File

@@ -6,6 +6,11 @@ using OpenRa.Game.Traits.Activities;
namespace OpenRa.Game.Traits
{
class PlaneInfo : ITraitInfo
{
public object Create(Actor self) { return new Plane(self); }
}
class Plane : IIssueOrder, IResolveOrder, IMovement
{
public IDisposable reservation;