#!/usr/bin/env python3 import ui from enum import Enum Status = Enum("Status", ["NEUTRAL", "DOWN", "ATTACKING", "HIT"]) class Action: def __init__(self, name, button): self.name = name self.button = button class Cowboy: hp = 1000 frame_advantage = 0 status = Status.NEUTRAL position = (0,0) all_actions = ( Action("slash", ui.Button("attack1")), Action("jump", ui.Button("move1")), Action("block", ui.Button("move2")), Action("hold", ui.Button("hold")), )