Example #1
0
 protected void startGameHandler(UserThread client, CSMessage msg)
 {
     try
     {
         CSUser user = (CSUser)msg.get(MessageType.USER);
         bool   play = (bool)msg.get(MessageType.PLAY_GAME);
         client.To = null;
         client.Froms.Clear();
         if (view.isOpened())
         {
             view.startGameHandler(user, play);
         }
     }
     catch (Exception e)
     {
         log(Severiry.ERROR, "Controller[StartGame] - " + e.Message);
     }
 }