fix aircraft so it actually works again

This commit is contained in:
Chris Forbes
2010-06-23 17:32:39 +12:00
committed by Paul Chote
parent e56339897f
commit 2dcc85f608

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA
public virtual object Create( ActorInitializer init ) { return new Aircraft( init ); } public virtual object Create( ActorInitializer init ) { return new Aircraft( init ); }
} }
public class Aircraft : IMove public class Aircraft : IMove, IOccupySpace
{ {
[Sync] [Sync]
public int2 Location; public int2 Location;
@@ -67,5 +67,8 @@ namespace OpenRA.Mods.RA
public UnitMovementType GetMovementType() { return UnitMovementType.Fly; } public UnitMovementType GetMovementType() { return UnitMovementType.Fly; }
public bool CanEnterCell(int2 location) { return true; } public bool CanEnterCell(int2 location) { return true; }
int2[] noCells = new int2[] { };
public IEnumerable<int2> OccupiedCells() { return noCells; }
} }
} }