roguepy/entity.py

24 lines
445 B
Python

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