-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstats.py
66 lines (45 loc) · 1.25 KB
/
stats.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import abc
from data_structures.referential_array import ArrayR
class Stats(abc.ABC):
@abc.abstractmethod
def get_attack(self):
pass
@abc.abstractmethod
def get_defense(self):
pass
@abc.abstractmethod
def get_speed(self):
pass
@abc.abstractmethod
def get_max_hp(self):
pass
class SimpleStats(Stats):
def __init__(self, attack, defense, speed, max_hp) -> None:
# TODO: Implement
pass
def get_attack(self):
raise NotImplementedError
def get_defense(self):
raise NotImplementedError
def get_speed(self):
raise NotImplementedError
def get_max_hp(self):
raise NotImplementedError
class ComplexStats(Stats):
def __init__(
self,
attack_formula: ArrayR[str],
defense_formula: ArrayR[str],
speed_formula: ArrayR[str],
max_hp_formula: ArrayR[str],
) -> None:
# TODO: Implement
pass
def get_attack(self, level: int):
raise NotImplementedError
def get_defense(self, level: int):
raise NotImplementedError
def get_speed(self, level: int):
raise NotImplementedError
def get_max_hp(self, level: int):
raise NotImplementedError