M2-PT-DRP/source/behaviors/roles/base/BaseRole.py

18 lines
323 B
Python

import abc
from source import managers
class BaseRole(abc.ABC):
"""
Base for all the role the machine can have
"""
def __init__(self, manager: "managers.Manager"):
self.manager = manager
@abc.abstractmethod
def handle(self) -> None:
"""
Behavior of the role
"""