from actions import Action, Idle, NA class Entity(): pass class Item(Entity): pass class Creature(Entity): def __init__(self): self.speed = 1 self.action: Action = NA() class Player(Creature): def __init__(self): super().__init__() class Enemy(Creature): def __init__(self): super().__init__() def calculate_action(self): self.action: Action = Idle()