Dodane pliki do podprojektów indywidualnych

This commit is contained in:
Marcin Kwapisz 2020-05-03 17:13:59 +02:00
parent 3d7efc6ef9
commit 86ce81245b
5 changed files with 53 additions and 1 deletions

9
Justyna.py Normal file
View File

@ -0,0 +1,9 @@
class main():
def __init__(self,traktor,field,ui,path):
self.traktor = traktor
self.field = field
self.ui = ui
self.path = path
def main(self):
pass

9
Kamila.py Normal file
View File

@ -0,0 +1,9 @@
class main():
def __init__(self,traktor,field,ui,path):
self.traktor = traktor
self.field = field
self.ui = ui
self.path = path
def main(self):
pass

9
Marcin.py Normal file
View File

@ -0,0 +1,9 @@
class main():
def __init__(self,traktor,field,ui,path):
self.traktor = traktor
self.field = field
self.ui = ui
self.path = path
def main(self):
pass

9
Piotrek.py Normal file
View File

@ -0,0 +1,9 @@
class main():
def __init__(self,traktor,field,ui,path):
self.traktor = traktor
self.field = field
self.ui = ui
self.path = path
def main(self):
pass

18
main.py
View File

@ -1,11 +1,15 @@
import pygame, sys
import tractor,pathfinding,field,ui
import tractor,pathfinding,field,ui,Justyna,Kamila,Marcin,Piotrek
from pygame.locals import *
pole = field.field()
path = pathfinding.pathfinding()
traktor = tractor.tractor(pole)
UI = ui.game_ui(traktor,pole)
j = Justyna.main(traktor,pole,UI,path)
k = Kamila.main(traktor,pole,UI,path)
neuro = Marcin.main(traktor,pole,UI,path)
p = Piotrek.main(traktor,pole,UI,path)
pygame.init()
UI.update()
UI.update()
@ -41,6 +45,18 @@ while True:
print(traktor.get_poz())
if key[K_F11]:
print(traktor.get_field_value())
if key[K_F5]:
#Dla projektu Justyny
j.main()
if key[K_F6]:
# Dla projektu Kamili
k.main()
if key[K_F7]:
# Dla projektu Marcina
neuro.main()
if key[K_F8]:
# Dla projektu Piotrka
p.main()
UI.update()
UI.update()