예제 #1
0
 def on_pre_open(self):
     current_lvl_id = db.get_val_from_global('current_lvl_id')
     game_action.execute_action('location', self.current_location.loc_id, current_lvl_id)
     if self.is_treasure_hunting:
         self.locations = locations
     else:
         self.locations = locations_mine
     self.open_location()
예제 #2
0
파일: main.py 프로젝트: snckmykek/game
 def on_dismiss(self):
     game_action.execute_action('after', self.current_location.loc_id,
                                self.current_level.lvl_id)
예제 #3
0
파일: main.py 프로젝트: snckmykek/game
 def check_actions(self):
     current_loc_id = db.get_val_from_global('current_loc_id')
     current_lvl_id = db.get_val_from_global('current_lvl_id')
     game_action.execute_action('home', current_loc_id, current_lvl_id)
예제 #4
0
파일: main.py 프로젝트: snckmykek/game
 def on_open(self):
     game_action.execute_action('before', self.current_location.loc_id,
                                self.current_level.lvl_id)