base_screen.py 497 B

1234567891011121314151617181920212223
  1. class BaseScreen():
  2. update_all = 0
  3. update_partial = 1
  4. no_update = 2
  5. def __init__(self, size, base_size, manager, fonts):
  6. self.size = size
  7. self.base_size = base_size
  8. self.manager = manager
  9. self.fonts = fonts
  10. def update(self, surface, update_type, rects):
  11. pass
  12. def event(self, event):
  13. pass
  14. def change_screen(self, direction):
  15. return False
  16. def should_update(self):
  17. return BaseScreen.update_partial