def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, width, height): Unit.__init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed) self.width = width self.height = height
def __init__(self, id, player_id, teammate_index, mass, radius, x, y, speed_x, speed_y, angle, angular_speed, teammate, type: (None, HockeyistType), strength, endurance, dexterity, agility, stamina, state: (None, HockeyistState), original_position_index, remaining_knockdown_ticks, remaining_cooldown_ticks, swing_ticks, last_action: (None, ActionType), last_action_tick): Unit.__init__(self, id, mass, radius, x, y, speed_x, speed_y, angle, angular_speed) self.player_id = player_id self.teammate_index = teammate_index self.teammate = teammate self.type = type self.strength = strength self.endurance = endurance self.dexterity = dexterity self.agility = agility self.stamina = stamina self.state = state self.original_position_index = original_position_index self.remaining_knockdown_ticks = remaining_knockdown_ticks self.remaining_cooldown_ticks = remaining_cooldown_ticks self.swing_ticks = swing_ticks self.last_action = last_action self.last_action_tick = last_action_tick
def __init__(self, id, player_name, width, height, x, y, speed_x, speed_y, angle, angular_speed, type): Unit.__init__(self, id, width, height, x, y, speed_x, speed_y, angle, angular_speed) self.player_name = player_name self.type = type
def __init__(self, id, player_id, teammate_index, mass, radius, x, y, speed_x, speed_y, angle, angular_speed, teammate, type, strength, endurance, dexterity, agility, stamina, state, original_position_index, remaining_knockdown_ticks, remaining_cooldown_ticks, swing_ticks, last_action, last_action_tick): Unit.__init__(self, id, mass, radius, x, y, speed_x, speed_y, angle, angular_speed) self.player_id = player_id self.teammate_index = teammate_index self.teammate = teammate self.type = type self.strength = strength self.endurance = endurance self.dexterity = dexterity self.agility = agility self.stamina = stamina self.state = state self.original_position_index = original_position_index self.remaining_knockdown_ticks = remaining_knockdown_ticks self.remaining_cooldown_ticks = remaining_cooldown_ticks self.swing_ticks = swing_ticks self.last_action = last_action self.last_action_tick = last_action_tick
def __init__(self, id, x, y, speed_x, speed_y, angle, faction, radius): Unit.__init__(self, id, x, y, speed_x, speed_y, angle, faction) self.radius = radius
def __init__(self, id, x, y, radius): Unit.__init__(self, id, x, y) self.radius = radius
def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, width, height): Unit.__init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed) self.width = width self.height = height
def __init__(self, id, width, height, x, y, type): Unit.__init__(self, id, width, height, x, y, 0.0, 0.0, 0.0, 0.0) self.type = type
def __init__(self, id, player_name, width, height, x, y, speed_x, speed_y, angle, angular_speed, type): Unit.__init__(self, id, width, height, x, y, speed_x, speed_y, angle, angular_speed) self.player_name = player_name self.type = type
def __init__(self, id, mass, radius, x, y, speed_x, speed_y, owner_hockeyist_id, owner_player_id): Unit.__init__(self, id, mass, radius, x, y, speed_x, speed_y, 0.0, 0.0) self.owner_hockeyist_id = owner_hockeyist_id self.owner_player_id = owner_player_id
def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, radius): Unit.__init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed) self.radius = radius
def __init__(self, id, width, height, x, y, type): Unit.__init__(self, id, width, height, x, y, 0.0, 0.0, 0.0, 0.0) self.type = type
def __init__(self, id, width, height, x, y): Unit.__init__(self, id, width, height, x, y, 0.0, 0.0, 0.0, 0.0)
def __init__(self, id, width, height, x, y): Unit.__init__(self, id, width, height, x, y, 0.0, 0.0, 0.0, 0.0)
def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, radius): Unit.__init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed) self.radius = radius
def __init__(self, id, mass, radius, x, y, speed_x, speed_y, owner_hockeyist_id, owner_player_id): Unit.__init__(self, id, mass, radius, x, y, speed_x, speed_y, 0.0, 0.0) self.owner_hockeyist_id = owner_hockeyist_id self.owner_player_id = owner_player_id
def __init__(self, id, player_name, teammate_index, x, y, speed_x, speed_y, angle, angular_speed, turret_relative_angle, crew_health, hull_durability, reloading_time, remaining_reloading_time, premium_shell_count, teammate, type): Unit.__init__(self, id, get_width(type), get_height(type), x, y, speed_x, speed_y, angle, angular_speed) self.player_name = player_name self.teammate_index = teammate_index self.turret_relative_angle = turret_relative_angle self.crew_health = crew_health self.hull_durability = hull_durability self.reloading_time = reloading_time self.remaining_reloading_time = remaining_reloading_time self.premium_shell_count = premium_shell_count self.teammate = teammate self.type = type self.virtual_gun_length = { TankType.MEDIUM: 67.5, TankType.HEAVY: 82.5, TankType.TANK_DESTROYER: 97.5 }[type] self.mass = { TankType.MEDIUM: 10.0, TankType.HEAVY: 20.0, TankType.TANK_DESTROYER: 15.0 }[type] self.engine_power = { TankType.MEDIUM: 7500.0, TankType.HEAVY: 8500.0, TankType.TANK_DESTROYER: 5000.0 }[type] self.engine_rear_power_factor = { TankType.MEDIUM: 0.75, TankType.HEAVY: 0.65, TankType.TANK_DESTROYER: 0.5 }[type] self.turret_turn_speed = { TankType.MEDIUM: 1.0 * pi / 180.0, TankType.HEAVY: 0.5 * pi / 180.0, TankType.TANK_DESTROYER: 1.5 * pi / 180.0 }[type] self.turret_max_relative_angle = { TankType.MEDIUM: 0.0 * pi / 180.0, TankType.HEAVY: 0.0 * pi / 180.0, TankType.TANK_DESTROYER: 15.0 * pi / 180.0 }[type] self.crew_max_health = { TankType.MEDIUM: 100, TankType.HEAVY: 100, TankType.TANK_DESTROYER: 100 }[type] self.hull_max_durability = { TankType.MEDIUM: 200, TankType.HEAVY: 250, TankType.TANK_DESTROYER: 250 }[type] self.frontal_armor = { TankType.MEDIUM: 175, TankType.HEAVY: 200, TankType.TANK_DESTROYER: 250 }[type] self.side_armor = { TankType.MEDIUM: 150, TankType.HEAVY: 175, TankType.TANK_DESTROYER: 125 }[type] self.rear_armor = { TankType.MEDIUM: 100, TankType.HEAVY: 100, TankType.TANK_DESTROYER: 100 }[type]
def __init__(self, id, player_name, teammate_index, x, y, speed_x, speed_y, angle, angular_speed, turret_relative_angle, crew_health, hull_durability, reloading_time, remaining_reloading_time, premium_shell_count, teammate, type): Unit.__init__(self, id, get_width(type), get_height(type), x, y, speed_x, speed_y, angle, angular_speed) self.player_name = player_name self.teammate_index = teammate_index self.turret_relative_angle = turret_relative_angle self.crew_health = crew_health self.hull_durability = hull_durability self.reloading_time = reloading_time self.remaining_reloading_time = remaining_reloading_time self.premium_shell_count = premium_shell_count self.teammate = teammate self.type = type self.virtual_gun_length = { TankType.MEDIUM: 67.5, TankType.HEAVY: 82.5, TankType.TANK_DESTROYER: 97.5 }[type] self.mass = { TankType.MEDIUM: 10.0, TankType.HEAVY: 20.0, TankType.TANK_DESTROYER: 15.0 }[type] self.engine_power = { TankType.MEDIUM: 7500.0, TankType.HEAVY: 8500.0, TankType.TANK_DESTROYER: 5000.0 }[type] self.engine_rear_power_factor = { TankType.MEDIUM: 0.75, TankType.HEAVY: 0.65, TankType.TANK_DESTROYER: 0.5 }[type] self.turret_turn_speed = { TankType.MEDIUM: 1.0 * pi / 180.0, TankType.HEAVY: 0.5 * pi / 180.0, TankType.TANK_DESTROYER: 1.5 * pi / 180.0 }[type] self.turret_max_relative_angle = { TankType.MEDIUM: 0.0 * pi / 180.0, TankType.HEAVY: 0.0 * pi / 180.0, TankType.TANK_DESTROYER: 15.0 * pi / 180.0 }[type] self.crew_max_health = { TankType.MEDIUM: 100, TankType.HEAVY: 100, TankType.TANK_DESTROYER: 100 }[type] self.hull_max_durability = { TankType.MEDIUM: 200, TankType.HEAVY: 250, TankType.TANK_DESTROYER: 250 }[type] self.frontal_armor = { TankType.MEDIUM: 175, TankType.HEAVY: 200, TankType.TANK_DESTROYER: 250 }[type] self.side_armor = { TankType.MEDIUM: 150, TankType.HEAVY: 175, TankType.TANK_DESTROYER: 125 }[type] self.rear_armor = { TankType.MEDIUM: 100, TankType.HEAVY: 100, TankType.TANK_DESTROYER: 100 }[type]