Ejemplo n.º 1
0
        private void Connect()
        {
            if (m_TimerConnectionThread != null)
            {
                m_TimerConnectionThread.Change(Timeout.Infinite, Timeout.Infinite);
            }

            Thread.Sleep(GetRandomTime());

            m_Running = new Running();

            if (m_CurrentBotIndex < m_Bots.Count)
            {
                m_CurrentBot = m_Bots[m_CurrentBotIndex];

                if (m_CurrentBot.IsBegun)
                {
                    if ((m_CurrentBot.SocketManager != null) && (m_CurrentBot.SocketManager.Connected()))
                    {
                        return;
                    }

                    m_CurrentBot.Initialize();

                    //account.Log(new ConnectionTextInformation("Connexion."));

                    //m_CurrentBot.SocketManager = new SocketManager();

                    //m_CurrentBot.SocketManager.Connect(new ConnectionInformations("213.248.126.39", 5555, "d'identification"));
                }
                return;
            }

            m_CurrentBotIndex = 0;

            // GetNextMeal();
        }
Ejemplo n.º 2
0
        private void Connect()
        {
            if (m_TimerConnectionThread != null)
                m_TimerConnectionThread.Change(Timeout.Infinite, Timeout.Infinite);

            Thread.Sleep(GetRandomTime());

            m_Running = new Running();

            if (m_CurrentBotIndex < m_Bots.Count)
            {
                m_CurrentBot = m_Bots[m_CurrentBotIndex];

                if (m_CurrentBot.IsBegun)
                {
                    if ((m_CurrentBot.SocketManager != null) && (m_CurrentBot.SocketManager.Connected()))
                        return;

                    m_CurrentBot.Initialize();

                    //account.Log(new ConnectionTextInformation("Connexion."));

                    //m_CurrentBot.SocketManager = new SocketManager();

                    //m_CurrentBot.SocketManager.Connect(new ConnectionInformations("213.248.126.39", 5555, "d'identification"));
                }
                return;
            }

            m_CurrentBotIndex = 0;

               // GetNextMeal();
        }
Ejemplo n.º 3
0
 public void StartFeeding()
 {
     m_Running = new Running();
     m_Running.Init();
 }
Ejemplo n.º 4
0
 public void TryFeeding()
 {
     Running = new Running();
     Running.Init();
 }
Ejemplo n.º 5
0
 public void StartFeeding()
 {
     m_Running = new Running();
     m_Running.Init();
 }