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

This commit is contained in:
(no author)
2007-07-24 10:04:54 +00:00
parent fce2dcda8a
commit 60e6f36042
8 changed files with 50 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ namespace OpenRa.Game
Game game;
Region region;
public IOrderGenerator orderGenerator;
UiOverlay uiOverlay;
public UiOverlay uiOverlay;
public World(Renderer renderer, Game game)
{
@@ -40,7 +40,7 @@ namespace OpenRa.Game
float2 xy = (1 / 24.0f) * (new float2(e.Location) + game.viewport.Location);
if (orderGenerator != null)
{
IOrder order = orderGenerator.Order(new int2((int)xy.X, (int)xy.Y));
IOrder order = orderGenerator.Order(game, new int2((int)xy.X, (int)xy.Y));
game.Issue(order);
}
}
@@ -52,7 +52,7 @@ namespace OpenRa.Game
lastTime = t;
Range<float2> range = new Range<float2>(region.Location, region.Location + region.Size);
foreach (Actor a in actors)
{
a.Tick( game, dt );