Esempio n. 1
0
    def __init__(self, name, desc, icon, table_name, level1_set, level2_set, level3_set, game_options={}, **kwargs):
        """
        Parametry:
            @name - nazwa zadania
            @desc - opis zadania (do wyświetlenia w menu)
            @icon - ikonka zadania (do wyświetlenia w menu)

            @level1_set - plik zawierający listę możliwych kart do rozlosowania na 1 poziomie
            @level2_set - plik zawierający listę możliwych kart do rozlosowania na 2 poziomie
            @level3_set - plik zawierający listę możliwych kart do rozlosowania na 3 poziomie

            @game_options - dodatkowe parametry gry (np. tryb zaznaczania kart, długoś czasu wyświetlania chmurki z wyrazem, itp)
        """
        Exercise.__init__(self, name=name, desc=desc, icon=icon, table_name=table_name, **kwargs)

        # Level Chooser
        lc = GenericLevelChooser(name=CH_SCREEN, title=name)

        lc.back_bt.bind(on_release=lambda bt: self.back_to_menu())

        game_options['table_name'] = table_name

        lc.level_1_bt.bind(on_release=lambda bt: self.launch_level(level_number=1, rows=3, cols=4, cards_set=level1_set, level_icon="res/icons/star1.png", **game_options))
        lc.level_2_bt.bind(on_release=lambda bt: self.launch_level(level_number=2, rows=4, cols=5, cards_set=level2_set, level_icon="res/icons/star2.png", **game_options))
        lc.level_3_bt.bind(on_release=lambda bt: self.launch_level(level_number=3, rows=5, cols=6, cards_set=level3_set, level_icon="res/icons/star3.png", **game_options))

        lc.stats_bt.bind(on_release=lambda bt: self.open_statistics())

        self.sm.add_widget(lc)
Esempio n. 2
0
    def __init__(self,
                 duration=10,
                 bodyGroup='Total Body',
                 cardioType='Treadmill'):

        Exercise.__init__(self, duration, bodyGroup)
        self.type = cardioType
Esempio n. 3
0
    def __init__(self,duration=15, bodyGroup='Total Body' , reps=None, sets=None, exerciseType='Free Weight'):

        Exercise.__init__(self, duration, bodyGroup)
        if reps is None:
            self.reps = randint(6,12)
        else:
            self.reps = reps
        if sets is None:
            self.sets = randint(3,6)
        else:
            self.sets = sets
        self.type = exerciseType
 def __init__(self, uicurses=None, dic_data=None):
     self.required = ["BPM", "duration"]
     Exercise.__init__(self, uicurses, dic_data)
Esempio n. 5
0
    def __init__(self, duration=10, bodyGroup='Total Body'):

        Exercise.__init__(self, duration, bodyGroup)
 def __init__(self):
     Exercise.__init__(self, "ParityExercise", "This exercise educates you about parity.", ())
     
Esempio n. 7
0
    def __init__(self,duration=10, bodyGroup='Total Body', instructor='Unknown', classType='Spin Class'):

        Exercise.__init__(self, duration, bodyGroup)
        self.instructor = instructor
        self.type = classType
 def __init__(self, uicurses=None, dic_data=None):
     self.required = ["text", "BPM", "words"] 
     Exercise.__init__(self, uicurses, dic_data)
 def __init__(self, uicurses=None, dic_data=None):
     self.required = ["text", "BPM", "words"] 
     Exercise.__init__(self, uicurses, dic_data)
     if "encoding" not in self:
         self.encoding=locale.getpreferredencoding()