Пример #1
0
 public MessageManager(GameModel gm)
 {
     players = gm.players;
     listOfAllClientsInGame = gm.playerIdLookup;
     gameModel = gm;
 }
Пример #2
0
 public MessageManager(GameModel gm)
 {
     players = gm.players;
     listOfAllClientsInGame = gm.playerIdLookup;
     gameModel = gm;
 }
 //public CompositeType GetDataUsingDataContract(CompositeType composite)
 // {
 //    throw new NotImplementedException();
 //}
 //Create new game
 private void createGame()
 {
     //Create Game if one does not exist
     if (!gameCreated)
     {
         gameModel = new GameModel(playerModels, messageManager);
         messageManager = new MessageManager(gameModel);
         gameStateManager = new GameStateManager(gameModel);
         gameCreated = true;
     }
 }
 public GameStateManager(GameModel gm)
 {
     gameModel = gm;
 }