From 5a3f5d9f3a44210e6dcd5af20a2b0dbcc2ccbe56 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 21 Aug 2011 19:37:22 +1200 Subject: [PATCH] move BuildState into BaseBuilder where it belongs --- OpenRA.Mods.RA/HackyAI.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/OpenRA.Mods.RA/HackyAI.cs b/OpenRA.Mods.RA/HackyAI.cs index 69fa6fd3e2..3de0cf560e 100644 --- a/OpenRA.Mods.RA/HackyAI.cs +++ b/OpenRA.Mods.RA/HackyAI.cs @@ -82,13 +82,6 @@ namespace OpenRA.Mods.RA this.rallypointTestBuilding = Rules.Info[Info.RallypointTestBuilding].Traits.Get(); } - enum BuildState - { - ChooseItem, - WaitForProduction, - WaitForFeedback, - } - const int MaxBaseDistance = 15; public static void BotDebug(string s, params object[] args) @@ -450,6 +443,8 @@ namespace OpenRA.Mods.RA class BaseBuilder { + enum BuildState { ChooseItem, WaitForProduction, WaitForFeedback } + BuildState state = BuildState.WaitForFeedback; string category; HackyAI ai;