-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathBuild.py
More file actions
executable file
·36 lines (26 loc) · 835 Bytes
/
Build.py
File metadata and controls
executable file
·36 lines (26 loc) · 835 Bytes
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
"""
Build Class
The build class is the top-level class encompassing all attributes and
parameters defining a build. It is defined by a specific Tree and Player
instance at time of evaluation.
The intent is that there is only one Build for a character. There might be
numerous Passive Trees (at various Player Levels, or various Cluster Jewels)
associated with a Player.
"""
import Tree
import Player
class Build:
def __init__(self, name: str = "temp") -> None:
self.name = name
self.tree = Tree.Tree()
self.player = Player.Player()
def __repr__(self) -> str:
ret_str = f"[BUILD]: '{self.name}'\n"
ret_str += f"{self.tree}"
ret_str += f"{self.player}"
return ret_str
def test() -> None:
build = Build()
print(build)
if __name__ == "__main__":
test()