Esempio n. 1
0
        public void AcceptInvitation(string p1, string p2)
        {
            Player player1 = GetPlayer(p1);
            Player player2 = GetPlayer(p2);
            Game game = new Game(1, player1, player2);

            Game_Start_Event += player1.IPortal_Callback.NotifyResponce;
            Game_Start_Event += player2.IPortal_Callback.NotifyResponce;
            Game_Start_Event(game);
        }
Esempio n. 2
0
        public Battle_Ship(Game game, string username, string opponent)
        {
            InitializeComponent();
            this.type = 0;

            proxy2 = new ServiceReference1.ChatClient(new InstanceContext(this));

            this.lbName.Text = username + " !";
            this.Playername = username;
            this.Opponent = opponent;
            proxy2.StartChatSession(Playername);
        }