Esempio n. 1
0
 public GameContext(PlayerList playerList, TurnController
                    turnController, CardController cardController, PlayingField playingField)
 {
     playerListContext     = playerList.GetContext();
     turnControllerContext = turnController.GetContext();
     playingFieldContext   = playingField.GetContext();
     cardControllerContext = cardController.GetContext();
 }
Esempio n. 2
0
        /// <summary>
        ///     Methode om GameContext te maken vanuit de gegeven bytes.
        /// </summary>
        /// <param name="data"></param>
        public void Deserialize(byte[] data)
        {
            GameContext ctx = (GameContext)GameFiles.Deserialize(data);

            playerListContext     = ctx.playerListContext;
            turnControllerContext = ctx.turnControllerContext;
            cardControllerContext = ctx.cardControllerContext;
            playingFieldContext   = ctx.playingFieldContext;
        }