Replay stuff.

FYI: Don't try to replay a game where you built any vehicles. It WILL fail horribly.
This commit is contained in:
Bob
2009-10-29 01:57:47 +13:00
parent 7c5fc4aa76
commit 89f9a96de5
6 changed files with 308 additions and 225 deletions

View File

@@ -25,7 +25,9 @@ namespace OpenRa.Game
public static PathFinder PathFinder;
public static Network network;
public static WorldRenderer worldRenderer;
public static Controller controller;
public static Controller controller;
public static OrderManager orderManager;
static int localPlayerIndex;
@@ -73,7 +75,9 @@ namespace OpenRa.Game
worldRenderer = new WorldRenderer(renderer);
soundEngine = new ISoundEngine();
sounds = new Cache<string, ISoundSource>(LoadSound);
sounds = new Cache<string, ISoundSource>(LoadSound);
orderManager = new OrderManager( new OrderSource[] { new LocalOrderSource() }, "replay.rep" );
PlaySound("intro.aud", false);
}
@@ -128,7 +132,9 @@ namespace OpenRa.Game
world.Update();
UnitInfluence.Tick();
viewport.DrawRegions();
viewport.DrawRegions();
orderManager.Tick();
}
public static bool IsCellBuildable(int2 a, UnitMovementType umt)