+ if (removeFrom == null)
+ throw new Exception("BasicAI.KillUnit - Can't identify unit with colour " + kill.colour + "!");
+
+ for (int ii=0; ii < removeFrom.size(); ++ii)
+ {
+ if (removeFrom.elementAt(ii) == kill)
+ {
+ removeFrom.remove(ii);
+ return;
+ }
+ }
+ throw new Exception("BasicAI.KillUnit - Couldn't find unit in unit list.");