class State: def __init__(self, parent, action, xpos, ypos, orientation): self.parent = parent self.xpos = xpos self.ypos = ypos self.orientation = orientation self.action = action