2022-03-22 21:52:05 +01:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
from stale import *
|
|
|
|
|
|
|
|
|
|
|
|
class Kierunek(Enum):
|
2022-04-06 14:05:40 +02:00
|
|
|
POLNOC = 0
|
|
|
|
POLUDNIE = 1
|
|
|
|
ZACHOD = 2
|
|
|
|
WSCHOD = 3
|
|
|
|
|
|
|
|
def kierunekNaLewo(self):
|
|
|
|
if self == Kierunek.POLNOC:
|
|
|
|
return Kierunek.ZACHOD
|
|
|
|
elif self == Kierunek.POLUDNIE:
|
|
|
|
return Kierunek.WSCHOD
|
|
|
|
elif self == Kierunek.ZACHOD:
|
|
|
|
return Kierunek.POLUDNIE
|
|
|
|
elif self == Kierunek.WSCHOD:
|
|
|
|
return Kierunek.POLNOC
|
|
|
|
|
|
|
|
def kierunekNaPrawo(self):
|
|
|
|
if self == Kierunek.POLNOC:
|
|
|
|
return Kierunek.WSCHOD
|
|
|
|
elif self == Kierunek.POLUDNIE:
|
|
|
|
return Kierunek.ZACHOD
|
|
|
|
elif self == Kierunek.ZACHOD:
|
|
|
|
return Kierunek.POLNOC
|
|
|
|
elif self == Kierunek.WSCHOD:
|
|
|
|
return Kierunek.POLUDNIE
|
2022-03-22 21:52:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ZawartoscPola(Enum):
|
|
|
|
PUSTE = 0
|
|
|
|
SCIANA = 1
|
2022-04-06 14:05:40 +02:00
|
|
|
CEL = 2
|
2022-04-18 23:28:28 +02:00
|
|
|
DYWAN = 3
|
|
|
|
KALUZA = 4
|
2022-06-08 09:56:20 +02:00
|
|
|
SCIANA2 = 5
|
|
|
|
OSOBA = 6
|
2022-03-22 21:52:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
ZawartoscPolaNaKolorPola = {
|
|
|
|
ZawartoscPola.PUSTE: BIALY,
|
2022-04-06 14:05:40 +02:00
|
|
|
ZawartoscPola.SCIANA: CIEMNY_BRAZOWY1,
|
2022-06-08 22:54:13 +02:00
|
|
|
ZawartoscPola.CEL: PACZKA,
|
2022-05-16 21:41:38 +02:00
|
|
|
ZawartoscPola.DYWAN: DYWAN,
|
|
|
|
ZawartoscPola.KALUZA: KALUZA,
|
2022-05-11 17:32:28 +02:00
|
|
|
ZawartoscPola.SCIANA2: SZARY1,
|
|
|
|
ZawartoscPola.OSOBA: IKONA
|
2022-04-18 23:28:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ZawartoscPolaNaKosztObrotu = {
|
|
|
|
ZawartoscPola.PUSTE: 1,
|
|
|
|
ZawartoscPola.SCIANA: None,
|
|
|
|
ZawartoscPola.CEL: 1,
|
|
|
|
ZawartoscPola.DYWAN: 5,
|
2022-05-11 17:32:28 +02:00
|
|
|
ZawartoscPola.KALUZA: 3,
|
|
|
|
ZawartoscPola.SCIANA2: None,
|
|
|
|
ZawartoscPola.OSOBA: None
|
2022-04-18 23:28:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ZawartoscPolaNaKosztWjechania = {
|
|
|
|
ZawartoscPola.PUSTE: 2,
|
|
|
|
ZawartoscPola.SCIANA: None,
|
|
|
|
ZawartoscPola.CEL: 2,
|
|
|
|
ZawartoscPola.DYWAN: 5,
|
2022-05-11 17:32:28 +02:00
|
|
|
ZawartoscPola.KALUZA: 35,
|
|
|
|
ZawartoscPola.SCIANA2: None,
|
|
|
|
ZawartoscPola.OSOBA: None
|
2022-03-22 21:52:05 +01:00
|
|
|
}
|