From f3888948332bf41795fcfd0a84bf0700abf3f0ab Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 17 May 2014 12:50:27 +0200 Subject: [PATCH] Better name for SaveGame. --- naja/scenes/load_save.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/naja/scenes/load_save.py b/naja/scenes/load_save.py index c021ea7..50c1446 100644 --- a/naja/scenes/load_save.py +++ b/naja/scenes/load_save.py @@ -28,7 +28,7 @@ def ensure_save_path_exists(): os.makedirs(location) -class SaveGame(object): +class SaveGameSlot(object): def __init__(self, slot_num): self.slot_num = slot_num @@ -74,7 +74,7 @@ class LoadSaveGameBase(Scene): selector.add(slot) def make_slot_widget(self, slot_num): - game_data = SaveGame(slot_num).get_game_data() + game_data = SaveGameSlot(slot_num).get_game_data() y_offset = 74 * slot_num slot = SaveSlotWidget((100, y_offset), slot_num, game_data) slot.add_callback('click', lambda event: self.perform_action(slot_num)) @@ -100,7 +100,7 @@ class LoadSaveGameBase(Scene): class SaveGameScene(LoadSaveGameBase): def perform_action(self, slot_num): try: - SaveGame(slot_num).save(self.state) + SaveGameSlot(slot_num).save(self.state) except Exception as e: print "Error saving game in slot %s: %s" % (slot_num, e) self.fail() @@ -115,7 +115,7 @@ class SaveGameScene(LoadSaveGameBase): class LoadGameScene(LoadSaveGameBase): def perform_action(self, slot_num): - state = SaveGame(slot_num).load() + state = SaveGameSlot(slot_num).load() if state is not None: LoadGameEvent.post(state) self.succeed() -- 2.34.1