protected void method_10() { GClass892 gclass = this.method_8(); GClass904 behavior = gclass.GetBehavior(); while (!behavior.vmethod_18(gclass)) { gclass = this.method_9(behavior); behavior = gclass.GetBehavior(); } if (!this.Module.GetBehavior().vmethod_18(this.Module)) { this.Module.ForceStop(); } else if (gclass.Priority > this.Module.Priority) { this.Module.Stop(); } if (this.Module.State == ModuleState.Stopped) { this.Module = gclass; } if (this.Module.State == ModuleState.Stopped) { this.Module.Start(); } }
private void method_1(Map map_0, Ship ship_0, bool bool_0) { GClass904 behavior = base.C.Behavior; if (ship_0.IsNpc) { GClass914 gclass = behavior as GClass914; if (gclass != null) { gclass.method_38(false); } } }
protected GClass892 method_9(GClass904 gclass904_0) { int num = int.MinValue; GClass892 gclass = null; foreach (GClass892 gclass2 in this.list_0) { if (gclass904_0.vmethod_18(gclass2) && (gclass2.Priority > num || gclass == null)) { num = gclass2.Priority; gclass = gclass2; } } return(gclass); }
private void method_2(Map map_0, Ship ship_0) { GClass904 behavior = base.C.Behavior; if (ship_0.IsNpc) { GClass914 gclass = behavior as GClass914; if (gclass != null && !gclass.method_37()) { bool flag = map_0.Ships.Count(new Func <KeyValuePair <int, Ship>, bool>(GClass900.< > c.< > c_0.method_0)) == 1; gclass.method_38(flag); if (flag) { base.Log.Info("New wave -- {ship}", ship_0.Name); } } } }
public void method_11(DrawingContext drawingContext_0, float float_0, float float_1, GClass890 gclass890_0) { foreach (KeyValuePair <string, Collectible> keyValuePair in gclass890_0.DormantTargets) { Collectible value = keyValuePair.Value; drawingContext_0.DrawRectangle(System.Windows.Media.Brushes.Pink, null, MapControl.smethod_0((double)(value.Position.X * float_0), (double)(value.Position.Y * float_1), 2.0, 2.0)); } if (gclass890_0.RoamTarget != Vector2.Zero) { Vector2 roamTarget = gclass890_0.RoamTarget; drawingContext_0.DrawEllipse(System.Windows.Media.Brushes.Magenta, null, new System.Windows.Point((double)(roamTarget.X * float_0), (double)(roamTarget.Y * float_1)), 6.0, 6.0); } GClass904 behavior = gclass890_0.Behavior; List <Rectangle> list = (behavior != null) ? behavior.vmethod_16() : null; if (list != null) { foreach (Rectangle rectangle in list) { Rect rectangle2 = new Rect((double)((float)rectangle.X * float_0), (double)((float)rectangle.Y * float_1), (double)((float)rectangle.Width * float_0), (double)((float)rectangle.Height * float_1)); drawingContext_0.DrawRectangle(null, new System.Windows.Media.Pen(System.Windows.Media.Brushes.Pink, 2.0), rectangle2); } } }