Tick() 공개 메소드

public Tick ( ) : void
리턴 void
예제 #1
0
        private static void Run(String username, String deck, String serverIP, int serverPort, String password)
        {
            Init("cards.cdb");

            // Start one client and connect it to the the requested server.
            GameClient clientA = new GameClient(username, deck, serverIP, serverPort, password);
            clientA.Start();

            while (clientA.Connection.IsConnected)
            {
                clientA.Tick();
                Thread.Sleep(1);
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: Rayth/windbot
        private static void Run(String username, String deck, String serverIP, int serverPort, String password)
        {
            Rand = new Random();
            CardsManager.Init();
            DecksManager.Init();

            // Start two clients and connect them to the same room. Which deck is gonna win?
            GameClient clientA = new GameClient(username, deck, serverIP, serverPort, password);
            clientA.Start();
            while (clientA.Connection.IsConnected)
            {
                clientA.Tick();
                Thread.Sleep(1);
            }
        }
예제 #3
0
파일: Program.cs 프로젝트: IceYGO/windbot
        private static void Run()
        {
            Init("cards.cdb");

            // Start two clients and connect them to the same server. Which deck is gonna win?
            GameClient clientA = new GameClient("Wind", "Horus", "127.0.0.1", 7911);
            GameClient clientB = new GameClient("Fire", "OldSchool", "127.0.0.1", 7911);
            clientA.Start();
            clientB.Start();
            while (clientA.Connection.IsConnected || clientB.Connection.IsConnected)
            {
                clientA.Tick();
                clientB.Tick();
                Thread.Sleep(1);
            }
        }