-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorld.py
More file actions
52 lines (36 loc) · 1.15 KB
/
World.py
File metadata and controls
52 lines (36 loc) · 1.15 KB
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
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""A simulated world where Neil runs a series of business.
The simulation include a virtue clock, the clock counts days instead of seconds"""
from simpy import *
from GlobalDeclaration import *
import Hotel
import HotelController as HC
import Player
import GameFunction as gf
from Menu import *
from StockController import *
from BankController import *
"""So, what it would do first is setup the environment: Create a player, create the other controllers, and start the time keeping (simulation of time)
Now, within it, it'd call the other controllers."""
#still need to do a virtue digital clock
#start running the game.
def run(hc,sc,menu):
bc.setup()
sc.setup()
hc.run(menu)
#run the world
if __name__ == '__main__':
#Option to enter the game or not
p = Player('Neil')
#An event that may happen at some point in time.
env = Environment()
#create a hotel controller
bc = BankController(env,p)
hc = HC.HotelController(env,p)
sc = StockController(p,env)
menu = Menu(p,env,hc,sc,bc)
os.system("clear")
menu.EnterGame()
run(hc,sc,menu)
env.run()