/// <summary>
        /// Initializes the dictionary object.
        /// </summary>
        /// <returns>Commands dictionary.</returns>
        private static Dictionary<string, IGameCommand> InitializeList()
        {
            Dictionary<string, IGameCommand> list = new Dictionary<string, IGameCommand>();

            IGameCommand loginCommand = new Login();
            list.Add(loginCommand.Name, loginCommand);

            IGameCommand getPlayerCommand = new GetPlayersList();
            list.Add(getPlayerCommand.Name, getPlayerCommand);

            IGameCommand selectPlayerCommand = new SelectPlayer();
            list.Add(selectPlayerCommand.Name, selectPlayerCommand);

            IGameCommand uiLoadCompleteCommand = new UILoadComplete();
            list.Add(uiLoadCompleteCommand.Name, uiLoadCompleteCommand);

            IGameCommand updateScoreCommand = new UpdateScore();
            list.Add(updateScoreCommand.Name, updateScoreCommand);

            IGameCommand gameCompleteCommand = new GameComplete();
            list.Add(gameCompleteCommand.Name, gameCompleteCommand);

            IGameCommand sendJigSawCoordinates = new SendJigSawCoordinates();
            list.Add(sendJigSawCoordinates.Name, sendJigSawCoordinates);

            IGameCommand selectTile = new SelectTile();
            list.Add(selectTile.Name, selectTile);

            IGameCommand disableTile = new DisableTile();
            list.Add(disableTile.Name, disableTile);

            IGameCommand assignTile = new AssignTile();
            list.Add(assignTile.Name, assignTile);

            IGameCommand resetTile = new ResetTile();
            list.Add(resetTile.Name, resetTile);

            return list;
        }
Пример #2
0
        /// <summary>
        /// Initializes the dictionary object.
        /// </summary>
        /// <returns>Commands dictionary.</returns>
        private static Dictionary<string, IGameCommand> InitializeList()
        {
            Dictionary<string, IGameCommand> list = new Dictionary<string, IGameCommand>();

            IGameCommand loginCommand = new Login();
            list.Add(loginCommand.Name, loginCommand);

            IGameCommand getBuddyPlayersCommand = new GetBuddyPlayers();
            list.Add(getBuddyPlayersCommand.Name, getBuddyPlayersCommand);

            IGameCommand selectBuddyCommand = new SelectBuddy();
            list.Add(selectBuddyCommand.Name, selectBuddyCommand);

            IGameCommand uiLoadCompleteCommand = new UILoadComplete();
            list.Add(uiLoadCompleteCommand.Name, uiLoadCompleteCommand);

            IGameCommand sendDotPointCommand = new SendDotPoint();
            list.Add(sendDotPointCommand.Name, sendDotPointCommand);

            IGameCommand sendMousePointCommand = new SendMousePoint();
            list.Add(sendMousePointCommand.Name, sendMousePointCommand);

            IGameCommand updateScoreCommand = new UpdateScore();
            list.Add(updateScoreCommand.Name, updateScoreCommand);

            IGameCommand gameCompleteCommand = new GameComplete();
            list.Add(gameCompleteCommand.Name, gameCompleteCommand);

            return list;
        }