Files
OpenRA/OpenRa.Game/Mcv.cs

30 lines
565 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using OpenRa.FileFormats;
using System.Drawing;
namespace OpenRa.Game
{
class Mcv : Actor
{
public Mcv( PointF location, int palette )
{
this.location = location;
this.palette = palette;
}
int GetFacing()
{
int x = (Environment.TickCount >> 6) % 64;
return x < 32 ? x : 63 - x;
}
public override SheetRectangle<Sheet>[] CurrentImages
{
get { return new SheetRectangle<Sheet>[] { UnitSheetBuilder.McvSheet[GetFacing()] }; }
}
}
}