本文整理汇总了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()
示例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()
示例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()
示例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()
示例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()
示例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()
示例7: __init__
def __init__(self):
AwardProcessor.__init__(
self,
"Fireworks",
"Most Kills by Front Projectiles",
[PLAYER_COL, Column("Kills", Column.NUMBER, Column.DESC)],
)
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()
示例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
示例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()