public void DoRandomShit(float dT) { System.Random r = new Random(); Components.Tasks.WalkTo w = new Components.Tasks.WalkTo(r.Next(0, this.ParentMap.Width), r.Next(0, this.ParentMap.Height)); w.Description = "Doing random shit"; w.Actor = this; this.Tasks.Enqueue(w); }
public override void Initialize() { base.Initialize(); Components.Tasks.ObtainItem t = new Components.Tasks.ObtainItem(); Components.Tasks.WalkTo w = new Components.Tasks.WalkTo(MapX, MapY); Components.Tasks.Drop d = new Components.Tasks.Drop(); this.Subtasks.Enqueue(t); this.Subtasks.Enqueue(w); this.Subtasks.Enqueue(d); this.Description = "Place item"; }