Files
2016-10-08 02:17:49 +02:00

34 lines
690 B
Python

class BaseScreen():
update_all = 0
update_partial = 1
no_update = 2
def __init__(self, size, base_size, manager, fonts):
self.size = size
self.base_size = base_size
self.manager = manager
self.fonts = fonts
def find_update_rects(self, rects):
pass
def update(self, surface, update_type, rects):
"""
Draw this screen to the surface
:param surface:
:param update_type:
:param rects:
"""
pass
def event(self, event):
pass
def change_screen(self, direction):
return False
def should_update(self):
return BaseScreen.update_partial