base_screen.py 690 B

123456789101112131415161718192021222324252627282930313233
  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 find_update_rects(self, rects):
  11. pass
  12. def update(self, surface, update_type, rects):
  13. """
  14. Draw this screen to the surface
  15. :param surface:
  16. :param update_type:
  17. :param rects:
  18. """
  19. pass
  20. def event(self, event):
  21. pass
  22. def change_screen(self, direction):
  23. return False
  24. def should_update(self):
  25. return BaseScreen.update_partial