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

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

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

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

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

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

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

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

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

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

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

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

            return(CodeBlocksHandler.GetPsaCommandsForCodeBlock(actionCodeBlockLocation));
        }