protected void method_8() { GClass841 gclass = this.method_7(); GClass853 behavior = gclass.GetBehavior(); while (!behavior.vmethod_19(gclass)) { gclass = this.iJuHvoQoba0(behavior); behavior = gclass.GetBehavior(); } if (!this.Module.GetBehavior().vmethod_19(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) { GClass853 behavior = base.C.Behavior; if (ship_0.IsNpc) { GClass863 gclass = behavior as GClass863; if (gclass != null) { gclass.method_37(false); } } }
protected GClass841 iJuHvoQoba0(GClass853 gclass853_0) { int num = int.MinValue; GClass841 gclass = null; foreach (GClass841 gclass2 in this.list_0) { if (gclass853_0.vmethod_19(gclass2) && (gclass2.Priority > num || gclass == null)) { num = gclass2.Priority; gclass = gclass2; } } return(gclass); }
private void method_2(Map map_0, Ship ship_0) { GClass853 behavior = base.C.Behavior; if (ship_0.IsNpc) { GClass863 gclass = behavior as GClass863; if (gclass != null && !gclass.method_36()) { bool flag = map_0.Ships.Count(new Func <KeyValuePair <int, Ship>, bool>(GClass849.< > c.< > c_0.method_0)) == 1; gclass.method_37(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, GClass839 gclass839_0) { foreach (KeyValuePair <string, Collectible> keyValuePair in gclass839_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 (gclass839_0.RoamTarget != Vector2.Zero) { Vector2 roamTarget = gclass839_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); } GClass853 behavior = gclass839_0.Behavior; List <Rectangle> list = (behavior != null) ? behavior.vmethod_17() : 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); } } }