zomg, infantry work now! zomg, FASTER git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1201 993157c7-ee19-0410-b2c4-bb4e9862e678
37 lines
661 B
C#
37 lines
661 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) % 32;
|
|
return x;
|
|
//return x < 32 ? x : 63 - x;
|
|
}
|
|
|
|
public override SheetRectangle<Sheet>[] CurrentImages
|
|
{
|
|
get
|
|
{
|
|
return new SheetRectangle<Sheet>[]
|
|
{
|
|
UnitSheetBuilder.McvSheet[GetFacing()],
|
|
UnitSheetBuilder.McvSheet[63 - GetFacing()]
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|