Esempio n. 1
0
 public DrawableScreen(ClientWindow cw, WindowHandler wh) : base()
 {
     this.wh = wh;
     this.cw = cw;
     pm = wh.PMOUSE;
     m = wh.MOUSE;
     //DoubleBuffered = true;
 }
Esempio n. 2
0
 public AddressBook(WindowHandler wh)
 {
     this.com = wh.COMMUNICATOR;
     this.kb  = wh.KEYBOARD;
     m        = wh.MOUSE;
     pm       = wh.PMOUSE;
     this.wh  = wh;
 }
Esempio n. 3
0
 public Station(WindowHandler wh)
 {
     this.m   = wh.MOUSE;
     this.pm  = wh.PMOUSE;
     this.mh  = wh.MENU;
     this.com = wh.COMMUNICATOR;
     ran      = new Random();
 }
Esempio n. 4
0
 /// <summary>
 /// Builds station handler with current mouse, pmouse, menu handler and communicator
 /// </summary>
 /// <param name="m">Bot's mouse</param>
 /// <param name="pm">Bot's precise mouse</param>
 /// <param name="mh">Bot's menu handler</param>
 /// <param name="com">Bot's communicator</param>
 public Station(Mouse m, PreciseMouse pm, MenuHandler mh, Communicator com)
 {
     this.m   = m;
     this.pm  = pm;
     this.mh  = mh;
     this.com = com;
     ran      = new Random();
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="m">Reference to the bot's mouse</param>
 /// <param name="pm">Reference to the bot's Precise mouse</param>
 /// <param name="com">Reference to the bot's communicator</param>
 public OverviewHandler(MenuHandler mh, Mouse m, PreciseMouse pm, Communicator com)
 {
     this.m    = m;
     this.pm   = pm;
     this.comm = com;
     this.mh   = mh;
     entries   = new List <OverViewEntry>();
     ran       = new Random();
 }
Esempio n. 6
0
 public Ship(WindowHandler wh)
 {
     overviewhandler = wh.OVERVIEW;
     com             = wh.COMMUNICATOR;
     menu            = wh.MENU;
     pm = wh.PMOUSE;
     m  = wh.MOUSE;
     kb = wh.KEYBOARD;
 }
Esempio n. 7
0
 public LocalHandler(WindowHandler wh)
 {
     com = wh.COMMUNICATOR;
     m   = wh.MOUSE;
     pm  = wh.PMOUSE;
     ran = new Random();
     mh  = wh.MENU;
     kb  = wh.KEYBOARD;
 }
Esempio n. 8
0
 /// <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();
 }
Esempio n. 9
0
 /// <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;
 }
Esempio n. 10
0
 /// <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);
 }
Esempio n. 11
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     pm = wh.PMOUSE;
     if(cw.AllowInput)
     {
         if(e.Button.Equals(MouseButtons.Left))
             pm.releaseLeftButton();
         else if(e.Button.Equals(MouseButtons.Right))
             pm.releaseRightButton();
     }
     base.OnMouseUp(e);
 }
Esempio n. 12
0
 protected override void OnMouseMove(MouseEventArgs e)
 {
     //cw.tabControl1.Invalidate();
   //  wh.Invalidate();
     pm = wh.PMOUSE;
     m = wh.MOUSE;
     if (cw.AllowInput)
     {
         dllMoveMouse(pm.APPWIN, e.X, e.Y);
         pm.x = e.X;
         pm.y = e.Y;
         m.x = e.X;
         m.y = e.Y;
     }
     this.Invalidate();   
     base.OnMouseMove(e);
 }
Esempio n. 13
0
 /// <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();
 }
Esempio n. 14
0
 public Camera(WindowHandler wh)
 {
     m   = wh.MOUSE;
     pm  = wh.PMOUSE;
     com = wh.COMMUNICATOR;
 }
Esempio n. 15
0
 /// <summary>
 /// Build a camera handler with the given mouse, pm and communicator references
 /// </summary>
 /// <param name="m">The mouse reference attached to this handler</param>
 /// <param name="pm">The precise mouse reference attached to this handler</param>
 /// <param name="com">The communicator reference attached to this handler</param>
 public Camera(Mouse m, PreciseMouse pm, Communicator com)
 {
     this.m   = m;
     this.pm  = pm;
     this.com = com;
 }
Esempio n. 16
0
 /// <summary>
 /// Synchronizes the mouse to the precise mouse
 /// </summary>
 /// <param name="pm">The precisemouse reference to synchronize to</param>
 public void synchronizePreciseMouse(PreciseMouse pm)
 {
     m.x = pm.x;
     m.y = pm.y;
 }