/// <summary>
        /// Constructs the bot runner using a custom configuration file. Note that the
        /// bot runner is not automatically executed. Call 'Start()' to run the bot
        /// runner.
        /// </summary>
        /// <param name="configurationFile">Configuration file to read.</param>
        public BotRunner(string configurationFile)
        {
            ConfigFile = configurationFile;

            // TODO: Replace with config.
            EchelonAddress = new TargetServer("glacier2a.cis.vtc.edu", 4063);

            bots = new List<VTankBot>();
            threads = new List<BotPackage>();
        }
Exemple #2
0
        /// <summary>
        /// Constructs a VTankBot.
        /// </summary>
        /// <param name="runner">Parent bot runner.</param>
        /// <param name="server">Target Echelon server.</param>
        /// <param name="auth">Authentication information.</param>
        public VTankBot(BotRunner runner, TargetServer server, AuthInfo auth)
        {
            BotRunner = runner;
            ServerAddress = server;
            AuthInfo = auth;
            Game = new GameTracker(this);
            buffer = new EventBuffer();

            CreateMasterCommunicator();
        }