SzybciorSmartTraktor/settings.py

37 lines
668 B
Python
Raw Normal View History

2022-03-11 03:02:29 +01:00
class Field:
@staticmethod
def size():
return 50
@staticmethod
def horizontal_count():
2022-05-10 20:06:15 +02:00
return 11
2022-03-11 03:02:29 +01:00
@staticmethod
def vertical_count():
2022-05-10 20:06:15 +02:00
return 11
2022-03-11 03:02:29 +01:00
class Pygame:
@staticmethod
def display_name():
return 'Szybcior Sztucznie Inteligentny Traktor'
@staticmethod
def fps():
return 10
@staticmethod
def height():
return Field.vertical_count() * Field.size()
@staticmethod
def width():
return Field.horizontal_count() * Field.size()
class Setting:
def __init__(self, key, default_value):
self.key = key
self.default_value = default_value