Basic chronosphere behavior

This commit is contained in:
Paul Chote
2010-01-03 21:51:54 +13:00
parent 67cda2162b
commit 8d761abb4f
12 changed files with 254 additions and 35 deletions

View File

@@ -49,7 +49,7 @@ namespace OpenRa.Game.Traits
{
if (order.OrderString == "Deploy")
{
Game.controller.orderGenerator = new TeleportOrderGenerator(self);
Game.controller.orderGenerator = new ChronoshiftDestinationOrderGenerator(self);
return;
}
@@ -68,7 +68,7 @@ namespace OpenRa.Game.Traits
public float GetSpeedModifier()
{
// ARGH! You must not do this, it will desync!
return (Game.controller.orderGenerator is TeleportOrderGenerator) ? 0f : 1f;
return (Game.controller.orderGenerator is ChronoshiftDestinationOrderGenerator) ? 0f : 1f;
}
// Display 5 pips indicating the current charge status