git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1296 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
30
OpenRa.Game/Building.cs
Normal file
30
OpenRa.Game/Building.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user