示例#1
0
    def GET(self, id=None):
        '''
        Provides statistics that represent the overall LAN party.

        Args:
           None

        Returns:
            overview (object): Overall information for the entire LAN party.
        '''
 
        return stat_mgr.get_stats()
示例#2
0
 def on_score(self, e):
     overall_stats = stat_mgr.get_stats()
     overall_stats.score += e.value
示例#3
0
 def on_kill(self, e):
     overall_stats = stat_mgr.get_stats()
     overall_stats.kills += 1
示例#4
0
 def on_event(self, e):
     overall_stats = stat_mgr.get_stats()
     overall_stats.lines += 1
示例#5
0
 def on_death(self, e):
     overall_stats = stat_mgr.get_stats()
     overall_stats.deaths += 1
示例#6
0
    def on_connect(self, e):
        players = model_mgr.get_players(True)

        overall_stats = stat_mgr.get_stats()
        overall_stats.players = max(overall_stats.players, len(players))