示例#1
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;
 }
示例#2
0
文件: Scriptable.cs 项目: emist/Eryan
 /// <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();
 }