当前位置: 首页>>代码示例>>Python>>正文


Python awards.AwardProcessor类代码示例

本文整理汇总了Python中processors.awards.AwardProcessor的典型用法代码示例。如果您正苦于以下问题:Python AwardProcessor类的具体用法?Python AwardProcessor怎么用?Python AwardProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AwardProcessor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Compensator',
                'Most Time Driving Tanks',
                [PLAYER_COL, Column('Time', Column.TIME, Column.DESC)])

        # Setup the results to store timers instead of numbers
        self.results = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:compensator.py

示例2: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'ROFLcopter',
                'Most Aircraft Crashes Within 30 Seconds of Takeoff',
                [PLAYER_COL, Column('Crashes', Column.NUMBER, Column.DESC)])

        # Keep track of the last vehicle enter event
        self.last_vehicle_entrance = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:roflcopter.py

示例3: __init__

    def __init__(self):
        AwardProcessor.__init__(
            self, "Chuck Yeager", "Most Time Flying Aircraft", [PLAYER_COL, Column("Time", Column.TIME, Column.DESC)]
        )

        # Setup the results to store timers instead of numbers
        self.results = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:chuck_yeager.py

示例4: __init__

    def __init__(self):
        AwardProcessor.__init__(
            self, "Angel of Death", "Most Kills After Death", [PLAYER_COL, Column("Kills", Column.NUMBER, Column.DESC)]
        )

        # Keep track of all the players currently killed
        self.killed = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:angel_of_death.py

示例5: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Predator',
                'Most Kills Against a Single Player',
                [PLAYER_COL, Column('Kills', Column.ARRAY, Column.DESC)])

        self.results = dict()
        self.attacker_to_victims = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:predator.py

示例6: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Genocide',
                'Most Kills Against a Single Team',
                [PLAYER_COL, Column('Kills', Column.ARRAY, Column.DESC)])

        self.results = dict()
        self.teams = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:genocide.py

示例7: __init__

 def __init__(self):
     AwardProcessor.__init__(
         self,
         "Fireworks",
         "Most Kills by Front Projectiles",
         [PLAYER_COL, Column("Kills", Column.NUMBER, Column.DESC)],
     )
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:fireworks.py

示例8: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Opportunist',
                'Most Kills by a Single Shot',
                [PLAYER_COL, Column('Kills', Column.NUMBER, Column.DESC)])

        self.lastKillTime = dict()
        self.count = collections.Counter()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:opportunist.py

示例9: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Stillborn', 'Shortest Life',
                [PLAYER_COL, Column('Time', Column.TIME, Column.ASC)])

        # Setup the results to store timers instead of numbers
        self.results = dict()
        self.timers = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:7,代码来源:stillborn.py

示例10: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Serial Killer',
                'Most Consecutive Kills Against a Single Player',
                [PLAYER_COL, Column('Kills', Column.ARRAY, Column.DESC)])

        self.results = dict()
        self.lastVictim = dict()
        self.tempCounter = collections.Counter()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:8,代码来源:serial_killer.py

示例11: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Camper',
                'Shortest Avg. Distance Between Kills',
                [PLAYER_COL, Column('Meters', Column.NUMBER, Column.ASC)])

        # Store the last known position for each player
        self.player_to_pos = dict()
        self.distance = collections.Counter()
        self.kills = collections.Counter()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:9,代码来源:camper.py

示例12: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Sittin\' Duck',
                'Shortest Avg. Distance Between Deaths',
                [PLAYER_COL, Column('Distance', Column.NUMBER, Column.ASC)])

        # Store the last known position for each player
        self.player_to_pos = dict()
        self.distance = Counter()
        self.deaths = Counter()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:9,代码来源:sitting_duck.py

示例13: __init__

    def __init__(self):
        AwardProcessor.__init__(self, 'Metronome',
                'Most Consistent Time Between Kills',
                [PLAYER_COL, Column('Seconds Deviation', Column.NUMBER, Column.ASC)])

        self.last_kill_time = dict()
        self.kills = dict()
        self.sum = dict()
        self.sum_squares = dict()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:9,代码来源:metronome.py

示例14: __init__

    def __init__(self):
        AwardProcessor.__init__(
            self, "Explorer", "Most Distance Traveled", [PLAYER_COL, Column("Meters", Column.NUMBER, Column.DESC)]
        )

        self.lastPos = dict()
        self.lastPos[EMPTY] = EMPTY.pos
        self.disableAir = dict()
        self.disableAir[EMPTY] = True
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:9,代码来源:explorer.py

示例15: __init__

    def __init__(self):
        AwardProcessor.__init__(
            self, "Methuselah", "Longest Life", [PLAYER_COL, Column("Time", Column.TIME, Column.DESC)]
        )

        # Setup the results to store timers instead of numbers
        self.results = dict()
        self.totalTime = dict()
        self.lives = collections.Counter()
开发者ID:chrisw1229,项目名称:bf2-stats,代码行数:9,代码来源:methuselah.py


注:本文中的processors.awards.AwardProcessor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。