yracing package

Subpackages

Submodules

yracing.bitmasks module

class yracing.bitmasks.BitMasks[source]

Bases: object

static car(idx)[source]
general = 0
ghost = 16
track = 1
track_merged = 15

yracing.camera module

class yracing.camera.Camera(car_np, cam_vec, car)[source]

Bases: yyagl.gameobject.GameObject

property camera
curr_speed(pos, tgt)[source]
destroy()[source]
dist_max = 48
dist_min = 24
static ease(val)[source]
get_camera()[source]
gnd_height(pos)[source]
inertia_dist = 15
look_dist_max = 16
look_dist_min = 2
static new_val(val, tgt, incr)[source]
static new_val_vec(vec_val, vec_tgt, incr)[source]
overwrite = [0, 0, 0]
speed = 50
speed_fast = 5000
speed_slow = 20
update(speed_ratio, is_rolling, is_fast, is_rotating)[source]
class yracing.camera.FPCamera(car_np, cam_vec, car)[source]

Bases: yracing.camera.Camera

dist_max = 24
dist_min = 16
height = 8

yracing.gameprops module

class yracing.gameprops.GameProps(menu_props, cars_names, drivers, season_tracks, tracks_tr, track_img, player_names, stored_player_names, drivers_img, cars_img, car_path, phys_path, model_name, damage_paths, wheel_gfx_names, xmpp_debug, social_sites)[source]

Bases: object

yracing.setup module

class yracing.setup.AbsCmd(dist)[source]

Bases: distutils.cmd.Command

env = {'APPNAME': 'yracing'}
finalize_options()[source]

Set final values for all the options that this command supports. This is always called as late as possible, ie. after any option assignments from the command-line or from other commands have been done. Thus, this is the place to code option dependencies: if ‘foo’ depends on ‘bar’, then it is safe to set ‘foo’ from ‘bar’ as long as ‘foo’ still has the same value it was assigned in ‘initialize_options()’.

This method must be implemented by all command classes.

initialize_options()[source]

Set default values for all the options that this command supports. Note that these defaults may be overridden by other commands, by the setup script, by config files, or by the command-line. Thus, this is not the place to code dependencies between options; generally, ‘initialize_options()’ implementations are just a bunch of “self.foo = None” assignments.

This method must be implemented by all command classes.

user_options = [('cores', None, '#cores')]
class yracing.setup.DevInfoCmd(dist)[source]

Bases: yracing.setup.AbsCmd

run()[source]

A command’s raison d’etre: carry out the action it exists to perform, controlled by the options initialized in ‘initialize_options()’, customized by other commands, the setup script, the command-line, and config files, and finalized in ‘finalize_options()’. All terminal output and filesystem interaction should be done by ‘run()’.

This method must be implemented by all command classes.

class yracing.setup.DocsCmd(dist)[source]

Bases: yracing.setup.AbsCmd

run()[source]

A command’s raison d’etre: carry out the action it exists to perform, controlled by the options initialized in ‘initialize_options()’, customized by other commands, the setup script, the command-line, and config files, and finalized in ‘finalize_options()’. All terminal output and filesystem interaction should be done by ‘run()’.

This method must be implemented by all command classes.

class yracing.setup.PDFCmd(dist)[source]

Bases: yracing.setup.AbsCmd

run()[source]

A command’s raison d’etre: carry out the action it exists to perform, controlled by the options initialized in ‘initialize_options()’, customized by other commands, the setup script, the command-line, and config files, and finalized in ‘finalize_options()’. All terminal output and filesystem interaction should be done by ‘run()’.

This method must be implemented by all command classes.

class yracing.setup.SourcePkgCmd(dist)[source]

Bases: yracing.setup.AbsCmd

run()[source]

A command’s raison d’etre: carry out the action it exists to perform, controlled by the options initialized in ‘initialize_options()’, customized by other commands, the setup script, the command-line, and config files, and finalized in ‘finalize_options()’. All terminal output and filesystem interaction should be done by ‘run()’.

This method must be implemented by all command classes.

class yracing.setup.UMLCmd(dist)[source]

Bases: yracing.setup.AbsCmd

run()[source]

A command’s raison d’etre: carry out the action it exists to perform, controlled by the options initialized in ‘initialize_options()’, customized by other commands, the setup script, the command-line, and config files, and finalized in ‘finalize_options()’. All terminal output and filesystem interaction should be done by ‘run()’.

This method must be implemented by all command classes.

Module contents