From 6d199b2e36ab782708010729394aa507c6b7702b Mon Sep 17 00:00:00 2001 From: Nick Dyer Date: Fri, 4 Jun 2021 00:05:57 -0400 Subject: [PATCH] renamed FileHandler to SaveHandler --- pocket_friends/game_files/game.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pocket_friends/game_files/game.py b/pocket_friends/game_files/game.py index 546678c..f9efb56 100644 --- a/pocket_friends/game_files/game.py +++ b/pocket_friends/game_files/game.py @@ -25,7 +25,7 @@ except FileExistsError: pass -class FileHandler: +class SaveHandler: """ Class that handles the hardware attributes and save files. """ @@ -155,7 +155,7 @@ def game(): # Default hardware state when the hardware first starts. game_state = 'title' running = True - file_handler = FileHandler() + save_handler = SaveHandler() # A group of all the sprites on screen. Used to update all sprites at onc all_sprites = pygame.sprite.Group() @@ -308,12 +308,12 @@ def game(): draw() # Read the save file. - file_handler.read_save() + save_handler.read_save() # Determines if it is a new hardware or not by looking at the evolution stage. If it is -1, the egg has # not been created yet, and the hardware sends you to the egg selection screen. If not, the hardware sends # you to the playground. - if file_handler.attributes['evolution_stage'] == -1: + if save_handler.attributes['evolution_stage'] == -1: game_state = 'egg_select' else: game_state = 'playground'