Start() 공개 메소드

public Start ( ) : void
리턴 void
예제 #1
0
        //call this when the host player wants to start
        private void StartGame()
        {
            StartGame conv = ConversationFactory.Instance
                             .CreateFromConversationType <StartGame>
                                 (server, null, null, null);

            conv._GameId = Player.GameId;
            conv.Start();
        }
예제 #2
0
 static void Main(string[] args)
 {
     OutPut.Welcome();
     Controller.StartMenu();
     Map.Create();
     Player.Create();
     Bonus.CreateBonus();
     Points.Create();
     Trap.Create();
     Mine.Create();
     StartGame.Start();
 }
예제 #3
0
        private void StartGameResponse(byte[] bytes, IPEndPoint refEp)
        {
            //awknowlege request
            StartGame conv = ConversationFactory.Instance
                             .CreateFromMessage <StartGame>(bytes, refEp, null, null, null);

            conv.Start();
            //send server location to all players
            StartGameMsg startMsg = Message.Decode <StartGameMsg>(bytes);
            int          GameId   = startMsg.GameId;

            GamesOnLobby.StartGame(GameId);
        }
예제 #4
0
 public void Start()
 {
     StartGame.Start();
 }