public SubActionsHandler(PsaFile psaFile, int dataSectionLocation, CodeBlocksHandler codeBlocksHandler, PsaCommandHandler psaCommandHandler) { PsaFile = psaFile; DataSectionLocation = dataSectionLocation; CodeBlocksHandler = codeBlocksHandler; PsaCommandHandler = psaCommandHandler; }
public List <PsaCommand> GetPsaCommandsForSubAction(int subActionId, int codeBlockId) { int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); return(CodeBlocksHandler.GetPsaCommandsForCodeBlock(subActionCodeBlockLocation)); }
public int GetSubActionCodeBlockCommandLocation(int subActionId, int codeBlockId, int commandIndex) { int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); return(CodeBlocksHandler.GetCodeBlockCommandLocation(subActionCodeBlockLocation, commandIndex)); }
public int GetSubActionCodeBlockCommandsPointerLocation(int subActionId, int codeBlockId) { int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); return(CodeBlocksHandler.GetCodeBlockCommandsPointerLocation(subActionCodeBlockLocation)); }
public CodeBlock GetCodeBlock(int subActionId, int codeBlockId) { int codeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); return(CodeBlocksHandler.GetCodeBlock(codeBlockLocation)); }
public void MoveCommand(int subActionId, int codeBlockId, int commandIndex, MoveDirection moveDirection) { int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); CodeBlocksHandler.MoveCommand(actionCodeBlockLocation, commandIndex, moveDirection); }
public void ModifyCommand(int subActionId, int codeBlockId, int commandIndex, PsaCommand newPsaCommand) { int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); CodeBlocksHandler.ModifyCommand(actionCodeBlockLocation, commandIndex, newPsaCommand); }
public void RemoveCommand(int subActionId, int codeBlockId, int commandIndex) { int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); CodeBlocksHandler.RemoveCommand(actionCodeBlockLocation, commandIndex); }
public void AddCommand(int subActionId, int codeBlockId) { int actionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); CodeBlocksHandler.AddCommand(actionCodeBlockLocation); }
public int GetNumberOfPsaCommandsInSubActionCodeBlock(int subActionId, int codeBlockId) { int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); return(CodeBlocksHandler.GetNumberOfPsaCommandsInCodeBlock(subActionCodeBlockLocation)); }
public PsaCommand GetPsaCommandForSubActionCodeBlock(int subActionId, int codeBlockId, int commandIndex) { int subActionCodeBlockLocation = GetSubActionCodeBlockLocation(subActionId, codeBlockId); return(CodeBlocksHandler.GetPsaCommandForCodeBlock(subActionCodeBlockLocation, commandIndex)); }
public int GetActionCodeBlockCommandsLocation(int actionId, int codeBlockId) { int actionCodeBlockLocation = GetActionCodeBlockLocation(actionId, codeBlockId); return(CodeBlocksHandler.GetCodeBlockCommandsLocation(actionCodeBlockLocation)); }
public List <PsaCommand> GetPsaCommandsForActionCodeBlock(int actionId, int codeBlockId) { int actionCodeBlockLocation = GetActionCodeBlockLocation(actionId, codeBlockId); return(CodeBlocksHandler.GetPsaCommandsForCodeBlock(actionCodeBlockLocation)); }