ITraitInfo, plumbing in NewUnitInfo

This commit is contained in:
Chris Forbes
2010-01-10 12:34:17 +13:00
parent fe8b13591f
commit 5fb2f91281
8 changed files with 44 additions and 12 deletions

View File

@@ -5,6 +5,14 @@ using OpenRa.Game.GameRules;
namespace OpenRa.Game.Traits
{
class MobileInfo : ITraitInfo
{
public readonly int Sight;
public readonly int ROT;
public readonly int Speed;
public object Create(Actor self) { return new Mobile(self); }
}
class Mobile : IIssueOrder, IResolveOrder, IOccupySpace, IMovement
{
readonly Actor self;