Пример #1
0
 public Lobby(ServiceReference.Player player)
 {
     playerThis   = player;
     playerClient = new ServiceReference.PlayerManagerClient();
     gameClient   = new ServiceReference.GameManagerClient();
     InitializeComponent();
     label_UserName.Content = playerThis.UserName;
     label_EE.Content       = "EE: " + playerClient.GetScore(playerThis.UserName);
 }
Пример #2
0
 public StudentBoard(ServiceReference.Player player, int idGame)
 {
     InitializeComponent();
     playerThis      = player;
     playerInstance  = new InstanceContext(this);
     gameClient      = new ServiceReference.GameManagerClient();
     startGameClient = new ServiceReference.StartGameManagerClient(playerInstance);
     this.idGame     = idGame;
     startGameClient.ConnectToStartGame(playerThis.UserName);
     InitializeBoard();
 }
Пример #3
0
 public TeacherMatchBoard(ServiceReference.Player player, int idGame, int idSelectedCharacter)
 {
     playerInstance = new InstanceContext(this);
     playerClient   = new ServiceReference.PlayerManagerClient();
     gameClient     = new ServiceReference.GameManagerClient();
     chatClient     = new ServiceReference.ChatManagerClient(playerInstance);
     music          = new SoundPlayer();
     InitializeComponent();
     playerThis  = player;
     this.idGame = idGame;
     this.idSelectedCharacter = idSelectedCharacter;
     InitializeMusic();
     chatClient.ConnectToChat(playerThis.UserName);
     ShowSelectedCharacter();
     chatClient.InitializeGameChat(idGame, playerThis.UserName);
     label_Message.Content    = playerThis.UserName;
     label_Message_EE.Content = "EE: " + playerClient.GetScore(playerThis.UserName);
 }
Пример #4
0
 public ChooseBoard(ServiceReference.Player player)
 {
     playerThis = player;
     gameClient = new ServiceReference.GameManagerClient();
     InitializeComponent();
 }