public XIWindower(int pid): base (pid) { Process p = Process.GetProcessById((int)pid); Player = new Player(p); Inventory = new Inventory(p); Fishing = new Fishing(p); }
public XIWindower(int pid) : base(pid) { this._Pid = pid; Process p = Process.GetProcessById((int) pid); p.Exited += new EventHandler(ProcessExitedEventHandler); this._pol = new PolProcess(p); this.Player = new Player(this); this.Inventory = new Inventory(this); this.Fishing = new Fishing(this); this.Craft = new Craft(this); this.Menu = new Menu(this); }
static void CheckBuffs(Player player) { int c = 0; Console.WriteLine("== Checking Buffs =="); Console.Write("List Buffs:"); foreach (eBuff b in player.ListBuffs()) { if (b == eBuff.Undefined) break; Console.Write("{0} ", b); c++; } Console.WriteLine("({0} buffs)", c); Console.WriteLine(); }