mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-14 05:06:55 +01:00
13 lines
271 B
Python
13 lines
271 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class Combatable(ABC):
|
|
@abstractmethod
|
|
def attack(self, target: str) -> dict: ...
|
|
|
|
@abstractmethod
|
|
def defend(self, incoming_damage: int) -> dict: ...
|
|
|
|
@abstractmethod
|
|
def get_combate_stats(self) -> dict: ...
|