-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreligion.py
70 lines (57 loc) · 2.41 KB
/
religion.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
67
68
69
70
import database as d
import clock
from transitions import Machine
from transitions import State
class Religion(object):
def __init__(self, reliName, months, daysPerMonth, firstMonth, year):
self.name = reliName
self.businesses = []
self.calendar = clock.Calendar(months, daysPerMonth, firstMonth, year)
d.addReligion(self)
def addBusiness(self, business):
self.businesses.append(business)
def getBusinesses(self):
return self.businesses
def getLocalBusiness(self, locality):
for business in self.businesses:
if business.locality == locality:
return business
return None
def getJobs(self):
return self.jobList
def addJob(self, job):
self.jobList.append(job)
def getSongs(self):
return self.songs
class Catholicism(Religion):
months = [State(name='January', on_enter=['yearChange']),'February','March','April','May','June','July','August','September','October','November','December']
daysPerMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
year = 1000
def __init__(self):
Religion.__init__(self, "Catholic", Catholicism.months, Catholicism.daysPerMonth, 'January', Catholicism.year)
self.songs = [
"In Paradisum (Fauré)",
"Crux Fidelis (Saint Venantius Fortunatus)",
"Beautiful Savior/Crusader's Hymn (anonymous)",
"Domine Jesu Christe (Mozart)"]
self.churchNames = [
"Blessed Mother Cathedral",
"Cathedral Basilica of the Immaculate Conception",
"Most Pure Heart of Mary Catholic Church",
"St Joseph's Roman Catholic Church"]
class Protestantism(Religion):
months = [State(name='January', on_enter=['yearChange']),'February','March','April','May','June','July','August','September','October','November','December']
daysPerMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
year = 1000
def __init__(self):
Religion.__init__(self, "Catholic", Protestantism.months, Protestantism.daysPerMonth, 'January', Protestantism.year)
self.songs = [
'Babylon is Fallen (Sacred Harp 117)',
'Antioch (Sacred Harp 277)',
'Idumea (Sacred Harp 47b)',
'Hallelujah (Sacred Harp 146)']
self.churchNames = [
"Holy Spirit Ministry",
"Emmanuel House of Prayer",
"Lloyd Street Church",
"St Mark's Lutheran Church"]