diff --git a/OpenRa.Game/Graphics/WorldRenderer.cs b/OpenRa.Game/Graphics/WorldRenderer.cs index 14bbff4afe..148cb979b4 100644 --- a/OpenRa.Game/Graphics/WorldRenderer.cs +++ b/OpenRa.Game/Graphics/WorldRenderer.cs @@ -211,7 +211,7 @@ namespace OpenRa.Game.Graphics foreach (var pips in selectedUnit.traits.WithInterface()) { - foreach (var pip in pips.GetPips()) + foreach (var pip in pips.GetPips(selectedUnit)) { var pipImages = new Animation("pips"); pipImages.PlayRepeating(pipStrings[(int)pip]); diff --git a/OpenRa.Game/Traits/ChronoshiftDeploy.cs b/OpenRa.Game/Traits/ChronoshiftDeploy.cs index cd02343320..7c4252fc97 100644 --- a/OpenRa.Game/Traits/ChronoshiftDeploy.cs +++ b/OpenRa.Game/Traits/ChronoshiftDeploy.cs @@ -55,7 +55,7 @@ namespace OpenRa.Game.Traits } // Display 5 pips indicating the current charge status - public IEnumerable GetPips() + public IEnumerable GetPips(Actor self) { const int numPips = 5; for (int i = 0; i < numPips; i++) diff --git a/OpenRa.Game/Traits/Harvester.cs b/OpenRa.Game/Traits/Harvester.cs index ef535cd876..f68f52f008 100644 --- a/OpenRa.Game/Traits/Harvester.cs +++ b/OpenRa.Game/Traits/Harvester.cs @@ -57,7 +57,7 @@ namespace OpenRa.Game.Traits } } - public IEnumerable GetPips() + public IEnumerable GetPips(Actor self) { const int numPips = 7; for (int i = 0; i < numPips; i++) diff --git a/OpenRa.Game/Traits/LimitedAmmo.cs b/OpenRa.Game/Traits/LimitedAmmo.cs index 2a1a938450..b5c18c55a2 100644 --- a/OpenRa.Game/Traits/LimitedAmmo.cs +++ b/OpenRa.Game/Traits/LimitedAmmo.cs @@ -23,7 +23,7 @@ namespace OpenRa.Game.Traits public void Attacking(Actor self) { --ammo; } - public IEnumerable GetPips() + public IEnumerable GetPips(Actor self) { return Graphics.Util.MakeArray(self.Info.Ammo, i => ammo > i ? PipType.Green : PipType.Transparent); diff --git a/OpenRa.Game/Traits/StoresOre.cs b/OpenRa.Game/Traits/StoresOre.cs index cd2d5210a8..25d16af2d0 100644 --- a/OpenRa.Game/Traits/StoresOre.cs +++ b/OpenRa.Game/Traits/StoresOre.cs @@ -11,7 +11,7 @@ namespace OpenRa.Game.Traits this.self = self; } - public IEnumerable GetPips() + public IEnumerable GetPips(Actor self) { for (int i = 0; i < self.Info.OrePips; i++) { diff --git a/OpenRa.Game/Traits/TraitsInterfaces.cs b/OpenRa.Game/Traits/TraitsInterfaces.cs index fdf5a05cbd..de5bc49c19 100644 --- a/OpenRa.Game/Traits/TraitsInterfaces.cs +++ b/OpenRa.Game/Traits/TraitsInterfaces.cs @@ -29,7 +29,7 @@ namespace OpenRa.Game.Traits interface IDamageModifier { float GetDamageModifier(); } interface ISpeedModifier { float GetSpeedModifier(); } interface IPaletteModifier { void AdjustPalette(Bitmap b); } - interface IPips { IEnumerable GetPips(); } + interface IPips { IEnumerable GetPips(Actor self); } interface ITags { IEnumerable GetTags(); } interface IMovement {