Ejemplo n.º 1
0
 public AskQuestionException(List<RunInstructions.StackTracer> stackTrace, SpokeQuestion question, GameBoard gameBoard)
 {
     myStackTrace = stackTrace;
     myQuestion = question;
     myGameBoard = gameBoard;
 }
Ejemplo n.º 2
0
        private GameBoard buildBoard(SpokeObject spokeObject)
        {
            GameBoard gb = new GameBoard();

            var mainArea = getVariableByName(spokeObject, "mainArea");
            var userAreas = getVariableByName(spokeObject, "userAreas");

            gb.MainArea = buildArea(mainArea, getVariableByName(spokeObject, "piles"));
            gb.UserAreas = new List<TableArea>();
            foreach (var area in userAreas.ArrayItems)
            {
                gb.UserAreas.Add(buildArea(area, getVariableByName(spokeObject, "piles")));

            }

            return gb;
        }