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

30
OpenRa.Game/Building.cs Normal file
View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace OpenRa.Game
{
class Building : Actor
{
protected Animation animation;
public Building( string name, int2 location, int palette )
{
this.renderLocation = 24.0f * location.ToFloat2();
this.palette = palette;
animation = new Animation( name );
animation.PlayThen( "make", delegate { animation.Play( "idle" ); } );
}
public override void Tick( World world, double t )
{
animation.Tick( t );
}
public override Sprite[] CurrentImages
{
get { return animation.Images; }
}
}
}