-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnitData.py
More file actions
39 lines (20 loc) · 766 Bytes
/
UnitData.py
File metadata and controls
39 lines (20 loc) · 766 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
37
38
class UnitData:
pageCount = 0 # by default - for first page
lineCount = 0
firstPageStringCollection = {}
stringCollection = [] # collection of string collection
gains = []
def __init__(self):
self.firstPageStringCollection["unitName"] = ""
self.firstPageStringCollection["quadef"] = ""
self.firstPageStringCollection["keywords"] = []
self.firstPageStringCollection["weapons"] = []
def addFirstPageStrings(self, a_firstPageStrings):
self.firstPageStringCollection = a_firstPageStrings
def addUpgradeStrings(self, a_incomingUpgrade):
self.stringCollection.append(a_incomingUpgrade)
def addGains(self, a_gain):
self.gains.append(a_gain)
def finalPageCountCalculate(self):
# some some some calculations
self.pageCount += 1