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-03-22 21:52:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
ZawartoscPolaNaKolorPola = {
|
|
|
|
ZawartoscPola.PUSTE: BIALY,
|
2022-04-06 14:05:40 +02:00
|
|
|
ZawartoscPola.SCIANA: CIEMNY_BRAZOWY1,
|
|
|
|
ZawartoscPola.CEL: ZIELONY1
|
2022-03-22 21:52:05 +01:00
|
|
|
}
|