示例#1
0
        public LLECommand clone()
        {
            LLECommand command = new LLECommand(mName);

            for (int i = 0; i < mParams.Count; i++)
            {
                command.mParams.Add(mParams[i]);
            }

            return command;
        }
        public void executeCommand(LLECommand command)
        {
            switch (command.mName)
            {
                case "goToScope":
                {
                    LLECommandScope scope = getCommandScope((string)command.mParams[0]);

                    if (scope != null)
                    {
                        mCurrentScope = scope;

                        executeScope();
                    }

                    break;
                }

                //Other commands access gameplay engine
            }
        }