def getcommand(s): return "%s(%d)" % opcode.getname(s)
def __init__(self, code, arguments=None, note=None): self.name, self.steps = opcode.getname(code) self.arguments = arguments self.note = note if self.note != None: self.steps += self.note.getNoteSteps()