git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1296 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-17 12:52:43 +00:00
parent 6bb26d95e1
commit 5bb5fc32fe
7 changed files with 55 additions and 43 deletions

View File

@@ -5,25 +5,12 @@ using BluntDirectX.Direct3D;
namespace OpenRa.Game
{
class ConstructionYard : Actor
class ConstructionYard : Building
{
Animation animation = new Animation( "fact" );
public ConstructionYard(float2 location, int palette)
public ConstructionYard( int2 location, int palette )
: base( "fact", location, palette )
{
this.renderLocation = location;
this.palette = palette;
animation.PlayToEnd( "make" );
}
public override Sprite[] CurrentImages
{
get { return animation.Images; }
}
public override void Tick( World world, double t )
{
animation.Tick( t );
animation.PlayThen( "make", delegate { animation.PlayRepeating( "build" ); } );
}
}
}