示例#1
0
 public SubActionsHandler(PsaFile psaFile, int dataSectionLocation, CodeBlocksHandler codeBlocksHandler, PsaCommandHandler psaCommandHandler)
 {
     PsaFile             = psaFile;
     DataSectionLocation = dataSectionLocation;
     CodeBlocksHandler   = codeBlocksHandler;
     PsaCommandHandler   = psaCommandHandler;
 }
示例#2
0
        public List <PsaCommand> GetPsaCommandsForSubAction(int subActionId, int codeBlockId)
        {
            int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            return(CodeBlocksHandler.GetPsaCommandsForCodeBlock(subActionCodeBlockLocation));
        }
示例#3
0
        public int GetSubActionCodeBlockCommandLocation(int subActionId, int codeBlockId, int commandIndex)
        {
            int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            return(CodeBlocksHandler.GetCodeBlockCommandLocation(subActionCodeBlockLocation, commandIndex));
        }
示例#4
0
        public int GetSubActionCodeBlockCommandsPointerLocation(int subActionId, int codeBlockId)
        {
            int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            return(CodeBlocksHandler.GetCodeBlockCommandsPointerLocation(subActionCodeBlockLocation));
        }
示例#5
0
        public CodeBlock GetCodeBlock(int subActionId, int codeBlockId)
        {
            int codeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            return(CodeBlocksHandler.GetCodeBlock(codeBlockLocation));
        }
示例#6
0
        public void MoveCommand(int subActionId, int codeBlockId, int commandIndex, MoveDirection moveDirection)
        {
            int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            CodeBlocksHandler.MoveCommand(actionCodeBlockLocation, commandIndex, moveDirection);
        }
示例#7
0
        public void ModifyCommand(int subActionId, int codeBlockId, int commandIndex, PsaCommand newPsaCommand)
        {
            int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            CodeBlocksHandler.ModifyCommand(actionCodeBlockLocation, commandIndex, newPsaCommand);
        }
示例#8
0
        public void RemoveCommand(int subActionId, int codeBlockId, int commandIndex)
        {
            int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            CodeBlocksHandler.RemoveCommand(actionCodeBlockLocation, commandIndex);
        }
示例#9
0
        public void AddCommand(int subActionId, int codeBlockId)
        {
            int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            CodeBlocksHandler.AddCommand(actionCodeBlockLocation);
        }
示例#10
0
        public int GetNumberOfPsaCommandsInSubActionCodeBlock(int subActionId, int codeBlockId)
        {
            int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            return(CodeBlocksHandler.GetNumberOfPsaCommandsInCodeBlock(subActionCodeBlockLocation));
        }
示例#11
0
        public PsaCommand GetPsaCommandForSubActionCodeBlock(int subActionId, int codeBlockId, int commandIndex)
        {
            int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId);

            return(CodeBlocksHandler.GetPsaCommandForCodeBlock(subActionCodeBlockLocation, commandIndex));
        }
示例#12
0
        public int GetActionCodeBlockCommandsLocation(int actionId, int codeBlockId)
        {
            int actionCodeBlockLocation = GetActionCodeBlockLocation(actionId, codeBlockId);

            return(CodeBlocksHandler.GetCodeBlockCommandsLocation(actionCodeBlockLocation));
        }
示例#13
0
        public List <PsaCommand> GetPsaCommandsForActionCodeBlock(int actionId, int codeBlockId)
        {
            int actionCodeBlockLocation = GetActionCodeBlockLocation(actionId, codeBlockId);

            return(CodeBlocksHandler.GetPsaCommandsForCodeBlock(actionCodeBlockLocation));
        }