-
Notifications
You must be signed in to change notification settings - Fork 94
/
champion.py
23 lines (18 loc) · 872 Bytes
/
champion.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
Contains all information related to an individual board slot used by the bot
"""
class Champion:
"""Champion class that contains information about a single unit on the board or bench"""
# pylint: disable=too-many-instance-attributes,too-few-public-methods,too-many-arguments
def __init__(self, name: str, coords: tuple, build, slot: int, size: int, final_comp: bool) -> None:
self.name: str = name
self.coords: tuple = coords
self.build = build
self.index: int = slot
self.size: int = size
self.completed_items: list = []
self.current_building: list = []
self.final_comp: bool = final_comp
def does_need_items(self) -> bool:
"""Returns if the champion instance needs items"""
return len(self.completed_items) != 3 or len(self.build) + len(self.current_building) == 0