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

This commit is contained in:
(no author)
2007-07-20 04:18:02 +00:00
parent df4e71e89e
commit db17062511
5 changed files with 28 additions and 22 deletions

View File

@@ -7,10 +7,11 @@ namespace OpenRa.Game
class Building : Actor
{
protected Animation animation;
protected int2 location;
public Building( string name, int2 location, int palette )
{
this.renderLocation = 24.0f * location.ToFloat2();
this.location = location;
this.palette = palette;
animation = new Animation( name );
@@ -26,5 +27,10 @@ namespace OpenRa.Game
{
get { return animation.Images; }
}
public override float2 RenderLocation
{
get { return 24.0f * location.ToFloat2(); }
}
}
}