예제 #1
0
파일: Car.py 프로젝트: elsid/CodeRacing
    def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed,
                 width, height, player_id, teammate_index, teammate,
                 type: (None, CarType), projectile_count, nitro_charge_count,
                 oil_canister_count, remaining_projectile_cooldown_ticks,
                 remaining_nitro_cooldown_ticks, remaining_oil_cooldown_ticks,
                 remaining_nitro_ticks, remaining_oiled_ticks, durability,
                 engine_power, wheel_turn, next_waypoint_index,
                 next_waypoint_x, next_waypoint_y, finished_track):
        RectangularUnit.__init__(self, id, mass, x, y, speed_x, speed_y, angle,
                                 angular_speed, width, height)

        self.player_id = player_id
        self.teammate_index = teammate_index
        self.teammate = teammate
        self.type = type
        self.projectile_count = projectile_count
        self.nitro_charge_count = nitro_charge_count
        self.oil_canister_count = oil_canister_count
        self.remaining_projectile_cooldown_ticks = remaining_projectile_cooldown_ticks
        self.remaining_nitro_cooldown_ticks = remaining_nitro_cooldown_ticks
        self.remaining_oil_cooldown_ticks = remaining_oil_cooldown_ticks
        self.remaining_nitro_ticks = remaining_nitro_ticks
        self.remaining_oiled_ticks = remaining_oiled_ticks
        self.durability = durability
        self.engine_power = engine_power
        self.wheel_turn = wheel_turn
        self.next_waypoint_index = next_waypoint_index
        self.next_waypoint_x = next_waypoint_x
        self.next_waypoint_y = next_waypoint_y
        self.finished_track = finished_track
예제 #2
0
파일: Car.py 프로젝트: smblance/CodeRacing
    def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, width, height, player_id, teammate_index,
                 teammate, type, projectile_count, nitro_charge_count, oil_canister_count,
                 remaining_projectile_cooldown_ticks, remaining_nitro_cooldown_ticks, remaining_oil_cooldown_ticks,
                 remaining_nitro_ticks, remaining_oiled_ticks, durability, engine_power, wheel_turn,
                 next_waypoint_index, next_waypoint_x, next_waypoint_y, finished_track):
        RectangularUnit.__init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, width, height)

        self.player_id = player_id
        self.teammate_index = teammate_index
        self.teammate = teammate
        self.type = type
        self.projectile_count = projectile_count
        self.nitro_charge_count = nitro_charge_count
        self.oil_canister_count = oil_canister_count
        self.remaining_projectile_cooldown_ticks = remaining_projectile_cooldown_ticks
        self.remaining_nitro_cooldown_ticks = remaining_nitro_cooldown_ticks
        self.remaining_oil_cooldown_ticks = remaining_oil_cooldown_ticks
        self.remaining_nitro_ticks = remaining_nitro_ticks
        self.remaining_oiled_ticks = remaining_oiled_ticks
        self.durability = durability
        self.engine_power = engine_power
        self.wheel_turn = wheel_turn
        self.next_waypoint_index = next_waypoint_index
        self.next_waypoint_x = next_waypoint_x
        self.next_waypoint_y = next_waypoint_y
        self.finished_track = finished_track
예제 #3
0
파일: Bonus.py 프로젝트: tgeorgy/aidriver
    def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed,
                 width, height, type):
        RectangularUnit.__init__(self, id, mass, x, y, speed_x, speed_y, angle,
                                 angular_speed, width, height)

        self.type = type
예제 #4
0
    def __init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, width, height, type: (None, BonusType)):
        RectangularUnit.__init__(self, id, mass, x, y, speed_x, speed_y, angle, angular_speed, width, height)

        self.type = type