public AddressBook(WindowHandler wh) { this.com = wh.COMMUNICATOR; this.kb = wh.KEYBOARD; m = wh.MOUSE; pm = wh.PMOUSE; this.wh = wh; }
public LocalHandler(WindowHandler wh) { com = wh.COMMUNICATOR; m = wh.MOUSE; pm = wh.PMOUSE; ran = new Random(); mh = wh.MENU; kb = wh.KEYBOARD; }
/// <summary> /// Build a menuhandler with the given mouse, precisemouse and communicator /// </summary> /// <param name="m">The bot's Mouse</param> /// <param name="pm">The bot's PreciseMouse</param> /// <param name="com">The bot's communicator</param> public MenuHandler(Mouse m, PreciseMouse pm, Communicator com, KeyBoard kb) { this.pm = pm; pm.Speed = 20; this.m = m; this.comm = com; this.kb = kb; random = new Random(); }
base.OnMouseMove(e); } protected override CreateParams CreateParams { get { // Set the WS_EX_TRANSPARENT flag without enabling click-through
public Ship(WindowHandler wh) { overviewhandler = wh.OVERVIEW; com = wh.COMMUNICATOR; menu = wh.MENU; pm = wh.PMOUSE; m = wh.MOUSE; kb = wh.KEYBOARD; }
/// <summary> /// Builds the session object with the given windowhandler /// </summary> /// <param name="wh">The reference to the bot's windowhandler</param> public Session(WindowHandler wh) { this.com = wh.COMMUNICATOR; this.kb = wh.KEYBOARD; m = wh.MOUSE; pm = wh.PMOUSE; this.wh = wh; addBook = new AddressBook(wh); local = new LocalHandler(wh); }
/// <summary> /// Handles the agent interaction /// </summary> /// <param name="wh"></param> public AgentHandler(WindowHandler wh) { com = wh.COMMUNICATOR; m = wh.MOUSE; pm = wh.PMOUSE; ran = new Random(); mh = wh.MENU; kb = wh.KEYBOARD; sess = wh.SESSION; }
/// <summary> /// Internal use, the Bot will initialize the script with its input handlers once its loaded into memory /// </summary> /// <param name="bot">The reference to the bot's windowhandler</param> public void initializeInputs(WindowHandler bot) { this.EMouse = bot.MOUSE; this.EPreciseMouse = bot.PMOUSE; this.EMenuHandler = bot.MENU; this.ECommunicator = bot.COMMUNICATOR; this.EOverViewHandler = bot.OVERVIEW; this.EStationHandler = bot.STATION; this.MyShip = bot.SHIP; this.ESession = bot.SESSION; this.ECamera = bot.CAMERA; this.EKeyboard = bot.KEYBOARD; this.ELocalHandler = bot.LOCAL; this.EDrawingArea = bot.DrawingArea; this.ELogger = bot.LOGGER; this.ELogger.ScriptName = name; this.EAgentHandler = bot.AGENT; ERandom = new Random(); }