Esempio n. 1
0
    def __init__(self):
        person.__init__(self)
        self.account_number = customer.customer_number + customer.acct_number_addition
        self.routing_number = make_routingNumber()
        self.balance = 0
        self.customer_number = customer.customer_number
        self.mutual_fund_acct_balance = 0
        self.metal_gem_fund_acct_balance = 0
        self.crypto_acct_balance = 0
        self.outstanding_balance = 0
        customer.customer_number += 1
        customer.acct_number_addition += r.randint(10, 50)
        person.customer_list.append(self)

        print('\nBank account has been opened for {}.'.format(self.name))

        self.__pin = input('\nSet a 4-digit pin: ')
        while len(self.__pin) != 4 or not self.__pin.isnumeric():
            self.__pin = input('\nPlease enter a 4-digit pin: ')

        deposit = input('\nWhat is the initial deposit?: $')

        while not deposit.isnumeric() or not float(deposit) > 0:
            deposit = input('\nEnter a valid amount to deposit: $')

        self.balance += float(deposit)

        print('\nDone.\n')
Esempio n. 2
0
    def __init__(self, obj_board):
        person.__init__(self, 2, 36)
        # self.body = [["/","/","/","/","/","/","/","/"],["|"," ","^"," "," ","^"," ","|"],["("," "," ","\'","\'"," "," ",")"],[" "," ","/"," ","\\"," "," "," "],["_","/"," "," "," ","\\","_", " "]]
        self.__body = [["|", "|", "|", "|", "|", "|", "|", "|"],
                       ["|", " ", "@", " ", " ", "@", " ", "|"],
                       ["|", " ", " ", "`", "`", " ", " ", "|"],
                       ["|", " ", " ", "=", "=", " ", " ", "|"],
                       ["|", "W", "W", "W", "W", "W", "W", "|"]]
        # self.__body = [["J","J","J","J","J","J","J","J"],["J","J","J","J","J","J","J", "J"],["J","J","J","J","J","J","J", "J"],["J","J","J","J", "J","J","J","J"],["J","J","J","J","J","J","J", "J"]]
        self.__lives = 10
        self.start = time.time()
        self.time = 100
        self.__coins = 0
        self.__score = 0
        self.bullets = []

        person.position(self, 2, 36)
        # for row in self.body:
        #     print(row)
        tempx = 36
        tempy = 2
        for row in self.__body:
            tempy = 2
            for element in row:
                obj_board.set_grid(element, tempx, tempy)
                # place[tempx][tempy] = element
                tempy += 1
            tempx += 1
Esempio n. 3
0
 def __init__(self, x, y, dic, user, ene, bomb_effect):
     self._ene = ene
     self._powerup = None
     self._bomb_effect = bomb_effect
     disguise = 'B'
     person.__init__(self, x, y, dic, disguise, user)
     self._bom = bomb(999, 999, self._dic, user, ene,
                      'normal')  # garbage large number
     self._bom._timer = -2
Esempio n. 4
0
 def __init__(self, centerPoint, image):
     person.__init__(self , centerPoint, image) 
     self.life = 3
     self.alive = True
     self.coins = 0
     self.dx = 0
     self.dy = 0
     self.climb = 0#decides if player will climb ladder or not
     self.jump = 0#decides if player will jump or not
     self.jumpd = -1#decides whether to move up down/up
     self.jumpl = 0#saves jump length
     self.yspeed = PLAYERSPEED
     self.xspeed = PLAYERSPEED
     self.jump_sound = soundloader("jump.ogg")
Esempio n. 5
0
 def __init__(self, obj_board):
     person.__init__(self, 272, 36)
     person.position(self, 272, 36)
     # self.body = [["B", "B", "B", "B", "B", "B", "B", "B"], ["B", "B", "B", "B", "B", "B", "B", "B"], ["B", "B", "B", "B", "B", "B", "B", "B"], ["B", "B", "B", "B", "B", "B", "B", "B"], ["B", "B", "B", "B", "B", "B", "B", "B"]]
     self.body = [["/", "/", "/", "/", "/", "/", "/", "/"],
                  ["(", " ", "^", " ", " ", "^", " ", ")"],
                  ["<", " ", " ", "\'", "\'", " ", " ", ">"],
                  [" ", "x", "x", "x", "x", "x", "x", " "],
                  [" ", " ", "x", "x", "x", "x", " ", " "]]
     self.__lives = 15
     tempx = self.curx
     tempy = self.cury
     for row in self.body:
         tempy = self.cury
         for element in row:
             obj_board.set_grid(element, tempx, tempy)
             # obj_board[tempx][tempy] = element
             tempy += 1
         tempx += 1
     self.ice = []
Esempio n. 6
0
	def __init__(self):
		person.__init__(self)
		customer.customer_number += 1
		self.customer_number = customer.customer_number
		self.account_number = customer.customer_number + customer.acct_number_addition		# Fake account number is created made and assigned
		self.routing_number = make_routingNumber()
		self.balance = 0
		self.mutual_fund_acct_balance = 0
		self.metal_gem_fund_acct_balance = 0
		self.crypto_acct_balance = 0
		self.outstanding_balance = 0
		customer.acct_number_addition += r.randint(10, 50)
		person.customer_list.append(self)
		self.__deleted_customer = False				# Set to true only if the manager deletes a customer. True value disables bank privileges.
		
		print('\nChecking account has been opened for {}.'.format(self.name))

		self.__pin = input('\nSet a 4-digit pin: ')
		while len(self.__pin) != 4 or not self.__pin.isnumeric():
			self.__pin = input('\nPlease enter a 4-digit pin: ')

		deposit = input('\nWhat is the initial deposit?: $')

		done = False
		while not done:	
			try:
				deposit = float(deposit)
				if deposit > 10:
					self.balance += deposit
					done = True
				else:
					deposit = input('\nEnter an amount over $10 to deposit: $')
			except:
				deposit = input('\nEnter a valid amount to deposit: $')

		print('\nDone.\n')
Esempio n. 7
0
 def __init__(self, name, email, pw):
     person.__init__(self, name, email)
     self.password = pw
Esempio n. 8
0
 def __init__(self, centerPoint, image):
     person.__init__(self , centerPoint, image) 
     self.dx = 0
     self.flag = 0
Esempio n. 9
0
 def __init__(self, name, age, dept, salary, company):
     person.__init__(self, name, age)
     self.dept = dept
     self.salary = salary
     self.company = company
Esempio n. 10
0
 def __init__(self, name, email, here=True):
     person.__init__(self, name, email)
     self.isHere = here #assume a student is here until otherwise known
Esempio n. 11
0
 def __init__(self, name, age, desg, stream):
     person.__init__(self, name, age)
     self.desg = desg
     self.stream = stream
Esempio n. 12
0
 def __init__(self, name, email, request=True):
     person.__init__(self, name, email)
     self.wants_info = request #assume an administrator wants info to be sent through ac-notify
Esempio n. 13
0
 def __init__(self):
     person.__init__(self)
     self.employee_permissions = True