yracing.race package

Submodules

yracing.race.event module

class yracing.race.event.NetMsgs[source]

Bases: object

end_race = 203
end_race_player = 202
game_packet = 200
player_info = 201
class yracing.race.event.RaceEvent(mediator, menu_cls, keys, players)[source]

Bases: yyagl.gameobject.EventColleague

destroy()[source]
fire_ingame_menu()[source]
network_register()[source]
on_end_race(player_name)[source]
on_ingame_back()[source]
on_ingame_exit()[source]
register_menu()[source]
class yracing.race.event.RaceEventClient(mediator, menu_cls, keys, players)[source]

Bases: yracing.race.event.RaceEvent

destroy()[source]
network_register()[source]
on_end_race(uid)[source]
on_frame()[source]
on_game_packet(data_lst)[source]
on_server_quit()[source]
process_client(data_lst, sender)[source]
class yracing.race.event.RaceEventServer(mediator, menu_cls, keys, players)[source]

Bases: yracing.race.event.RaceEvent

check_end()[source]
destroy()[source]
network_register()[source]
on_end_race(player_name)[source]
on_end_race_player(uid)[source]
on_frame()[source]
on_player_info(data_lst)[source]

yracing.race.fsm module

class yracing.race.fsm.RaceFsm(mediator, shaders, pbr)[source]

Bases: yyagl.gameobject.FsmColleague

aux_start_countdown()[source]
enterCountdown(sprops)[source]
enterLoading(rprops, track_name_transl, ranking, players)[source]
enterPlay()[source]
enterResults(race_ranking, players)[source]
exitCountdown()[source]
exitLoading()[source]
exitPlay()[source]
exitResults()[source]
start_countdown()[source]
class yracing.race.fsm.RaceFsmClient(mediator, shaders)[source]

Bases: yracing.race.fsm.RaceFsm

client_start_countdown()[source]
start_countdown()[source]
class yracing.race.fsm.RaceFsmServer(mediator, shaders)[source]

Bases: yracing.race.fsm.RaceFsm

eval_start(task)[source]
server_start_countdown()[source]
start_countdown()[source]

yracing.race.logic module

class yracing.race.logic.NetMsgs[source]

Bases: object

begin_race = 101
client_at_countdown = 102
client_ready = 100
start_countdown = 103
class yracing.race.logic.RaceLogic(mediator, rprops)[source]

Bases: yyagl.gameobject.LogicColleague

property all_cars
enter_play()[source]
exit_play()[source]
is_ai_car(player_car)[source]
load_stuff(car_name, player_car_names, players)[source]
min_dist(car)[source]
property nonplayer_cars
on_aspect_ratio_changed()[source]
on_frame()[source]
on_rotate_all(sender)[source]
on_track_loaded()[source]
race_ranking()[source]
ranking()[source]
set_display_regions()[source]
start_play()[source]
class yracing.race.logic.RaceLogicClient(mediator, rprops)[source]

Bases: yracing.race.logic.RaceLogic

destroy()[source]
exit_play()[source]
on_begin_race()[source]
on_start_countdown()[source]
class yracing.race.logic.RaceLogicServer(mediator, rprops)[source]

Bases: yracing.race.logic.RaceLogic

destroy()[source]
eval_start(task)[source]
exit_play()[source]
process_srv(data_lst, sender)[source]
class yracing.race.logic.RaceLogicSinglePlayer(mediator, rprops)[source]

Bases: yracing.race.logic.RaceLogic

enter_play()[source]

yracing.race.race module

class yracing.race.race.Race(race_props, players)[source]

Bases: yyagl.gameobject.GameObject, yracing.race.race.RaceFacade

destroy()[source]
event_cls

alias of yracing.race.event.RaceEvent

fsm_cls

alias of yracing.race.fsm.RaceFsm

gui_cls

alias of yracing.race.gui.gui.RaceGui

logic_cls

alias of yracing.race.logic.RaceLogic

class yracing.race.race.RaceClient(race_props, players)[source]

Bases: yracing.race.race.Race

event_cls

alias of yracing.race.event.RaceEventClient

fsm_cls

alias of yracing.race.fsm.RaceFsmClient

logic_cls

alias of yracing.race.logic.RaceLogicClient

class yracing.race.race.RaceFacade[source]

Bases: object

attach_obs(obs_meth, sort=10, rename='', args=[])[source]
detach_obs(obs_meth, lambda_call=None)[source]
property results
class yracing.race.race.RaceServer(race_props, players)[source]

Bases: yracing.race.race.Race

event_cls

alias of yracing.race.event.RaceEventServer

fsm_cls

alias of yracing.race.fsm.RaceFsmClient

gui_cls

alias of yracing.race.gui.gui.RaceGuiServer

logic_cls

alias of yracing.race.logic.RaceLogicClient

class yracing.race.race.RaceSinglePlayer(race_props, players)[source]

Bases: yracing.race.race.Race

logic_cls

alias of yracing.race.logic.RaceLogicSinglePlayer

yracing.race.raceprops module

class yracing.race.raceprops.RaceProps(season_props, keys, joystick, sounds, coll_path, coll_name, car_path, wheel_names, road_name, particle_path, shaders_dev, pbr, shaders, music_path, gfx_track_path, track_coll_path, unmerged_names, merged_names, ghost_names, corner_names, wp_info, show_waypoints, weapon_info, start_name, track_name, track_path, track_model_name, empty_name, anim_name, omni_tag, sign_cb, sign_name, minimap_path, minimap_image, col_dct, camera_vec, shadow_src, laps, skidmark_col, rocket_path, turbo_path, rotate_all_path, mine_path, bonus_model, bonus_suff, a_i, ingame_menu, share_urls, respawn_name, pitstop_name, wall_name, goal_name, bonus_name, roads_names, grid, start_wp, ai_debug)[source]

Bases: object

Module contents