yyagl.racing.car package

Submodules

yyagl.racing.car.ai module

class yyagl.racing.car.ai.AbsAiLogic(car, cars, player_car)

Bases: yyagl.computer_proxy.ComputerProxy, yyagl.gameobject.GameObject

car_dot_traj
clear()
destroy()
get_obstacles()
hit_res(direction)
tgt_vec
class yyagl.racing.car.ai.CarAi(mdt, car_props)

Bases: yyagl.gameobject.Ai, yyagl.computer_proxy.ComputerProxy

acceleration
brake(obstacles, obstacles_back)
curr_logic
destroy()
get_input(*args, **kwargs)
is_on_road
left_right(obstacles, brake, obstacles_back)
on_frame()
class yyagl.racing.car.ai.CarAiPoller

Bases: object

current
destroy()
set_cars(cars)
tick()
class yyagl.racing.car.ai.CarResultsAi(mdt, car_props)

Bases: yyagl.racing.car.ai.CarAi

class yyagl.racing.car.ai.DebugLines(color)

Bases: object

clear()
destroy()
draw(start, end)
class yyagl.racing.car.ai.DirKeys

Bases: tuple

DirKeys(forward, left, rear, right)

forward

Alias for field number 0

left

Alias for field number 1

rear

Alias for field number 2

right

Alias for field number 3

class yyagl.racing.car.ai.FrontAiLogic(car, cars, player_car)

Bases: yyagl.racing.car.ai.AbsAiLogic

static bnd_idx(direction)
car_vec
curr_tgt_wp
on_brake(dist_center, dist_left, dist_right)
class yyagl.racing.car.ai.LastObstInfo

Bases: tuple

LastObstInfo(direction, time)

direction

Alias for field number 0

time

Alias for field number 1

class yyagl.racing.car.ai.ObstInfo

Bases: tuple

ObstInfo(name, dist)

dist

Alias for field number 1

name

Alias for field number 0

class yyagl.racing.car.ai.RearAiLogic(car, cars, player_car)

Bases: yyagl.racing.car.ai.AbsAiLogic

static bnd_idx(direction)
car_vec
curr_tgt_wp
on_brake(dist_center, dist_left, dist_right)

yyagl.racing.car.audio module

class yyagl.racing.car.audio.AbsAudioUpdate(engine_sfx, brake_sfx)
destroy()
update()
class yyagl.racing.car.audio.CarAudio(mdt, *args, **kwargs)

Bases: yyagl.gameobject.Audio

on_play()
class yyagl.racing.car.audio.CarPlayerAudio(mdt, props)

Bases: yyagl.racing.car.audio.CarAudio

destroy()
on_play()
update(is_skidmarking, speed_ratio, input, is_drifting, is_flying, is_rolling)
class yyagl.racing.car.audio.CarSounds

Bases: tuple

CarSounds(engine, brake, crash, crash_hs, lap, landing, pitstop, rocket_fired, rocket_hit, turbo, rotate_all_fired, rotate_all_hit)

brake

Alias for field number 1

crash

Alias for field number 2

crash_hs

Alias for field number 3

engine

Alias for field number 0

landing

Alias for field number 5

lap

Alias for field number 4

pitstop

Alias for field number 6

rocket_fired

Alias for field number 7

rocket_hit

Alias for field number 8

rotate_all_fired

Alias for field number 10

rotate_all_hit

Alias for field number 11

turbo

Alias for field number 9

class yyagl.racing.car.audio.CountDownAudioUpdate(engine_sfx, brake_sfx)

Bases: yyagl.racing.car.audio.AbsAudioUpdate

update(is_skidmarking, speed_ratio, input, is_drifting, is_flying, is_rolling)
class yyagl.racing.car.audio.RaceAudioUpdate(engine_sfx, brake_sfx)

Bases: yyagl.racing.car.audio.AbsAudioUpdate

update(is_skidmarking, speed_ratio, input, is_drifting, is_flying, is_rolling)

yyagl.racing.car.car module

class yyagl.racing.car.car.AiCar(car_props)

Bases: yyagl.racing.car.car.Car

ai_cls

alias of CarAi

event_cls

alias of CarAiEvent

class yyagl.racing.car.car.AiCarPlayer(car_props)

Bases: yyagl.racing.car.car.AiCar, yyagl.racing.car.car.CarPlayer

event_cls

alias of CarAiPlayerEvent

class yyagl.racing.car.car.Car(car_props)

Bases: yyagl.gameobject.GameObject, yyagl.racing.car.car.CarFacade

ai_cls

alias of Ai

audio_cls

alias of CarAudio

destroy()
event_cls

alias of CarEvent

fsm_cls

alias of CarFsm

gfx_cls

alias of CarGfx

gui_cls

alias of CarGui

logic_cls

alias of CarLogic

phys_cls

alias of CarPhys

class yyagl.racing.car.car.CarFacade

Bases: yyagl.facade.Facade

class yyagl.racing.car.car.CarPlayer(car_props)

Bases: yyagl.racing.car.car.Car

audio_cls

alias of CarPlayerAudio

event_cls

alias of CarPlayerEvent

gfx_cls

alias of CarPlayerGfx

gui_cls

alias of CarPlayerGui

logic_cls

alias of CarPlayerLogic

phys_cls

alias of CarPlayerPhys

class yyagl.racing.car.car.CarPlayerClient(car_props)

Bases: yyagl.racing.car.car.Car

audio_cls

alias of CarPlayerAudio

event_cls

alias of CarPlayerEventClient

gui_cls

alias of CarPlayerGui

logic_cls

alias of CarPlayerLogic

class yyagl.racing.car.car.CarPlayerServer(car_props)

Bases: yyagl.racing.car.car.Car

audio_cls

alias of CarPlayerAudio

event_cls

alias of CarPlayerEventServer

gui_cls

alias of CarPlayerGui

logic_cls

alias of CarPlayerLogic

class yyagl.racing.car.car.CarProps

Bases: tuple

CarProps(race_props, name, pos, hpr, callback, race, driver_engine, driver_tires, driver_suspensions, track_waypoints, ai_poller)

ai_poller

Alias for field number 10

callback

Alias for field number 4

driver_engine

Alias for field number 6

driver_suspensions

Alias for field number 8

driver_tires

Alias for field number 7

hpr

Alias for field number 3

name

Alias for field number 1

pos

Alias for field number 2

race

Alias for field number 5

race_props

Alias for field number 0

track_waypoints

Alias for field number 9

class yyagl.racing.car.car.NetworkCar(car_props)

Bases: yyagl.racing.car.car.Car

event_cls

alias of CarNetworkEvent

yyagl.racing.car.decorator module

class yyagl.racing.car.decorator.Decorator(fpath, parent)

Bases: yyagl.gameobject.GameObject

destroy()

yyagl.racing.car.event module

class yyagl.racing.car.event.CarAiEvent(mdt, race_props)

Bases: yyagl.racing.car.event.CarEvent

class yyagl.racing.car.event.CarAiPlayerEvent(mdt, race_props)

Bases: yyagl.racing.car.event.CarAiEvent, yyagl.racing.car.event.CarPlayerEvent

class yyagl.racing.car.event.CarEvent(mdt, race_props)

Bases: yyagl.gameobject.Event, yyagl.computer_proxy.ComputerProxy

destroy()
on_bonus()
on_collision(obj, tgt_obj)
on_frame()
on_rotate_all(sender)
process_respawn()
start()
class yyagl.racing.car.event.CarNetworkEvent(mdt, race_props)

Bases: yyagl.racing.car.event.CarEvent

class yyagl.racing.car.event.CarPlayerEvent(mdt, race_props)

Bases: yyagl.racing.car.event.CarEvent

destroy()
on_bonus()
on_collision(obj, tgt_obj)
on_fire()
on_frame()
class yyagl.racing.car.event.CarPlayerEventClient(mdt, race_props)

Bases: yyagl.racing.car.event.CarPlayerEvent

on_frame()
class yyagl.racing.car.event.CarPlayerEventServer(mdt, race_props)

Bases: yyagl.racing.car.event.CarPlayerEvent

yyagl.racing.car.event.DirKeys

alias of Keys

class yyagl.racing.car.event.InputBuilder

Bases: object

static create(state, joystick)
class yyagl.racing.car.event.InputBuilderAi

Bases: yyagl.racing.car.event.InputBuilder

build(ai, joystick_mgr)
class yyagl.racing.car.event.InputBuilderJoystick

Bases: yyagl.racing.car.event.InputBuilder

build(ai, joystick_mgr)
class yyagl.racing.car.event.InputBuilderKeyboard

Bases: yyagl.racing.car.event.InputBuilder

build(ai, joystick_mgr)
class yyagl.racing.car.event.Keys

Bases: tuple

Keys(forward, rear, left, right, fire, respawn, pause)

fire

Alias for field number 4

forward

Alias for field number 0

left

Alias for field number 2

pause

Alias for field number 6

rear

Alias for field number 1

respawn

Alias for field number 5

right

Alias for field number 3

yyagl.racing.car.fsm module

class yyagl.racing.car.fsm.CarFsm(mdt, car_props)

Bases: yyagl.gameobject.Fsm

enterPlay()
enterResults()

yyagl.racing.car.gfx module

class yyagl.racing.car.gfx.CarGfx(mdt, car_props)

Bases: yyagl.gameobject.Gfx, yyagl.racing.car.gfx.CarGfxFacade

apply_damage(reset=False)
crash_sfx()
destroy()
load()
load_wheels(chassis_model)
preload_tsk(tsk)
reparent()
set_decorator(dec_code)
unset_decorator(dec)
class yyagl.racing.car.gfx.CarGfxFacade

Bases: yyagl.facade.Facade

class yyagl.racing.car.gfx.CarPlayerGfx(mdt, car_props)

Bases: yyagl.racing.car.gfx.CarGfx

crash_sfx()
class yyagl.racing.car.gfx.SkidmarkMgr(car)

Bases: yyagl.gameobject.GameObject

destroy()
on_no_skidmarking()
on_skidmarking()

yyagl.racing.car.gui module

class yyagl.racing.car.gui.CarAIPanel

Bases: yyagl.gameobject.GameObject

update()
class yyagl.racing.car.gui.CarGui(mdt, *args, **kwargs)

Bases: yyagl.gameobject.Gui

apply_damage(reset=False)
class yyagl.racing.car.gui.CarPanel(race_props)

Bases: yyagl.gameobject.GameObject

apply_damage(reset=False)
destroy()
set_weapon(wpn)
unset_weapon()
class yyagl.racing.car.gui.CarParameter(attr_name, init_val, pos, val_range, callback, args=[])

Bases: yyagl.gameobject.GameObject

destroy()
is_visible
toggle()
class yyagl.racing.car.gui.CarParameters(phys, logic)

Bases: object

destroy()
toggle()
class yyagl.racing.car.gui.CarPlayerGui(mdt, car_props)

Bases: yyagl.racing.car.gui.CarGui

apply_damage(reset=False)
destroy()
upd_ai()
upd_ranking(ranking)

yyagl.racing.car.logic module

class yyagl.racing.car.logic.AnalogicInput2ForcesStrategy(car)

Bases: yyagl.racing.car.logic.Input2ForcesStrategy

input2forces(car_input, joystick_mgr, is_drifting)
class yyagl.racing.car.logic.CarLogic(mdt, car_props)

Bases: yyagl.gameobject.Logic, yyagl.computer_proxy.ComputerProxy

bitmask
car_vec
closest_wp(*args, **kwargs)
correct_lap
curr_chassis
curr_chassis_name
destroy()
direction
fire()
grid_wps
has_rear_weapon
hi_chassis_name
is_drifting
is_rolling
is_rotating
is_skidmarking
is_upside_down
lap_time
laps_num
last_wp_not_fork()
nogrid_wps(*args, **kwargs)
nopitlane_wps(curr_wp)
not_fork_wps(*args, **kwargs)
on_weapon_destroyed(wpn)
pitstop_wps
static pt_line_dst(point, line_pt1, line_pt2)
reset_car()
reset_waypoints()
update(input2forces)
update_waypoints()
wp_num
class yyagl.racing.car.logic.CarPlayerLogic(mdt, car_props)

Bases: yyagl.racing.car.logic.CarLogic

fire()
update(input_dct)
class yyagl.racing.car.logic.DiscreteInput2ForcesStrategy(car)

Bases: yyagl.racing.car.logic.Input2ForcesStrategy

input2forces(car_input, joystick_mgr, is_drifting)
turn_time = 0.1
class yyagl.racing.car.logic.DriftingForce(car)

Bases: object

process(input_dct)
class yyagl.racing.car.logic.Input2ForcesStrategy(car)

Bases: object

static build(is_player, joystick, car)
get_eng_frc(eng_frc)
static new_val(val, tgt, incr, decr)
steering_clamp(is_drifting)
steering_dec
steering_inc
class yyagl.racing.car.logic.WPInfo

Bases: tuple

WPInfo(prev, next)

next

Alias for field number 1

prev

Alias for field number 0

yyagl.racing.car.phys module

class yyagl.racing.car.phys.CarPhys(mdt, car_props)

Bases: yyagl.gameobject.Phys

apply_damage(reset=False)
destroy()
get_friction()
get_roll_influence()
get_speed()
static gnd_height(pos)
static gnd_name(pos)
gnd_names
is_drifting
is_flying
last_drift_time
lateral_force
lin_vel
lin_vel_ratio
on_end_frame()
prev_speed
prev_speed_ratio
rotate()
set_forces(eng_frc, brake_frc, steering)
speed
speed_ratio
update_car_props()
class yyagl.racing.car.phys.CarPlayerPhys(mdt, car_props)

Bases: yyagl.racing.car.phys.CarPhys

get_friction()
get_roll_influence()
get_speed()
rotate()

yyagl.racing.car.skidmark module

class yyagl.racing.car.skidmark.Skidmark(whl_pos, whl_radius, car_h)

Bases: yyagl.gameobject.GameObject

add_vertices(whl_radius, car_h)
destroy()
update(whl_pos, car_h)

Module contents

Table Of Contents

Previous topic

yyagl.racing package

Next topic

yyagl.racing.driver package

This Page

Please, support us!




Flattr this