diff --git a/src/__pycache__/graphics.cpython-37.pyc b/src/__pycache__/graphics.cpython-37.pyc index c9372da..29f67d1 100644 Binary files a/src/__pycache__/graphics.cpython-37.pyc and b/src/__pycache__/graphics.cpython-37.pyc differ diff --git a/src/__pycache__/matrix.cpython-37.pyc b/src/__pycache__/matrix.cpython-37.pyc index 3da0cda..1f46182 100644 Binary files a/src/__pycache__/matrix.cpython-37.pyc and b/src/__pycache__/matrix.cpython-37.pyc differ diff --git a/src/__pycache__/tile.cpython-37.pyc b/src/__pycache__/tile.cpython-37.pyc index 465e2fb..54bba7a 100644 Binary files a/src/__pycache__/tile.cpython-37.pyc and b/src/__pycache__/tile.cpython-37.pyc differ diff --git a/src/__pycache__/waiter.cpython-37.pyc b/src/__pycache__/waiter.cpython-37.pyc index 5fdaebc..83a4f5f 100644 Binary files a/src/__pycache__/waiter.cpython-37.pyc and b/src/__pycache__/waiter.cpython-37.pyc differ diff --git a/src/graphics.py b/src/graphics.py index 221a58b..736bc70 100644 --- a/src/graphics.py +++ b/src/graphics.py @@ -4,25 +4,25 @@ import pygame class Graphics: def __init__(self): self.image = { - 'floor': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/floor.jpg'), + 'floor': pygame.image.load('./../resources/images/floor.jpg'), # - 'wall': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/wall.png'), + 'wall': pygame.image.load('./../resources/images/wall.png'), # - 'bar': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/table3.png'), - 'bar_floor': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/waiter-up.png'), - 'table': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/table3.png'), - 'waiter_N': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/waiter-up.png'), - 'waiter_S': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/waiter-down.png'), - 'waiter_E': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/waiter-right.png'), - 'waiter_W': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/waiter-left.png'), + 'bar': pygame.image.load('./../resources/images/table3.png'), + 'bar_floor': pygame.image.load('./../resources/images/waiter-up.png'), + 'table': pygame.image.load('./../resources/images/table3.png'), + 'waiter_N': pygame.image.load('./../resources/images/waiter-up.png'), + 'waiter_S': pygame.image.load('./../resources/images/waiter-down.png'), + 'waiter_E': pygame.image.load('./../resources/images/waiter-right.png'), + 'waiter_W': pygame.image.load('./../resources/images/waiter-left.png'), # - 'chair_front': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/chair-front.png'), + 'chair_front': pygame.image.load('./../resources/images/chair-front.png'), # - 'chair_back': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/chair-back.png'), + 'chair_back': pygame.image.load('./../resources/images/chair-back.png'), # - 'chair_left': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/chair-left.png'), + 'chair_left': pygame.image.load('./../resources/images/chair-left.png'), # - 'chair_right': pygame.image.load('/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/images/chair-right.png') + 'chair_right': pygame.image.load('./../resources/images/chair-right.png') } self.block_size = 50 self.height = 15 diff --git a/src/matrix.py b/src/matrix.py index f262245..0d324a6 100644 --- a/src/matrix.py +++ b/src/matrix.py @@ -17,7 +17,7 @@ class Matrix: def set_default_restaurant(self, graphics): lines = [line.rstrip('\n') for line in open( - '/Users/marcindobrowolski/Desktop/Python/Sztuczna_Inteligencja_2020/resources/simulations/simulation_1.txt')] + './../resources/simulations/simulation_1.txt')] symbols = { '_': 'floor', 'W': 'wall', diff --git a/src/waiter.py b/src/waiter.py index 122cdde..5fb43d8 100644 --- a/src/waiter.py +++ b/src/waiter.py @@ -243,6 +243,5 @@ class Waiter(pygame.sprite.Sprite): self.update('L', graphics) graphics.update(self) - def getTotalCost(tile): return tile.totalCost