//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(); }
static void Main(string[] args) { OutPut.Welcome(); Controller.StartMenu(); Map.Create(); Player.Create(); Bonus.CreateBonus(); Points.Create(); Trap.Create(); Mine.Create(); StartGame.Start(); }
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); }
public void Start() { StartGame.Start(); }