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

This commit is contained in:
chrisf
2007-07-11 10:53:48 +00:00
parent 0b36bfacdd
commit 492c76262b
6 changed files with 192 additions and 176 deletions

17
OpenRa.Game/Tree.cs Normal file
View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenRa.FileFormats;
using System.Drawing;
namespace OpenRa.Game
{
class Tree : Actor
{
public Tree(TreeReference r, TreeCache renderer, Map map)
{
location = new PointF(24 * (r.X - map.XOffset), 24 * (r.Y - map.YOffset));
currentImages = new SheetRectangle<Sheet>[] { renderer.GetImage(r.Image) };
}
}
}