yracing.weapon.weapon package

Submodules

yracing.weapon.weapon.ai module

class yracing.weapon.weapon.ai.WeaponAi(mediator, car)[source]

Bases: yyagl.gameobject.AiColleague

fire_times = (2, 5)
property is_fired_or_before
property obstacles
property rear_obstacles

yracing.weapon.weapon.audio module

class yracing.weapon.weapon.audio.WeaponAudio(mediator)[source]

Bases: yyagl.gameobject.AudioColleague

crash_sfx = 'assets/sfx/crash_high_speed.ogg'
sfx = 'assets/sfx/landing.ogg'

yracing.weapon.weapon.event module

class yracing.weapon.weapon.event.RocketWeaponEvent(mediator, particle_path)[source]

Bases: yracing.weapon.weapon.event.WeaponEvent

on_collision(obj, tgt_obj)[source]
class yracing.weapon.weapon.event.WeaponEvent(mediator, particle_path)[source]

Bases: yyagl.gameobject.EventColleague

destroy()[source]

yracing.weapon.weapon.gfx module

class yracing.weapon.weapon.gfx.WeaponGfx(mediator, parent, fpath)[source]

Bases: yyagl.gameobject.GfxColleague

destroy()[source]
reparent(parent)[source]
update_fired_props(pos, fwd)[source]
update_props(pos, fwd)[source]
class yracing.weapon.weapon.gfx.WeaponGfxNetwork(mediator, car, cars)[source]

Bases: yracing.weapon.weapon.gfx.WeaponGfx

destroy()[source]
update_fired_props(pos, fwd)[source]
update_props(pos, fwd)[source]

yracing.weapon.weapon.logic module

class yracing.weapon.weapon.logic.WeaponLogic(mediator, car, cars, wpn_id)[source]

Bases: yyagl.gameobject.LogicColleague

destroy()[source]
fire(sfx)[source]
update_props(pos, fwd)[source]
class yracing.weapon.weapon.logic.WeaponLogicNetwork(mediator, car, cars, wpn_id)[source]

Bases: yracing.weapon.weapon.logic.WeaponLogic

update_fired_props(pos, fwd)[source]
update_props(pos, fwd)[source]

yracing.weapon.weapon.phys module

class yracing.weapon.weapon.phys.RocketWeaponPhys(mediator, car, cars, players)[source]

Bases: yracing.weapon.weapon.phys.WeaponPhys

destroy()[source]
fire()[source]
update_weapon(tsk)[source]
class yracing.weapon.weapon.phys.WeaponPhys(mediator, car, cars, players)[source]

Bases: yyagl.gameobject.PhysColleague

destroy()[source]
fire()[source]

yracing.weapon.weapon.weapon module

class yracing.weapon.weapon.weapon.PhysWeapon(car, path, cars, part_path, wpn_id, players)[source]

Bases: yracing.weapon.weapon.weapon.Weapon

destroy()[source]
class yracing.weapon.weapon.weapon.Weapon(car, path, cars, part_path, wpn_id, players)[source]

Bases: yyagl.gameobject.GameObject, yracing.weapon.weapon.weapon.WeaponFacade

audio_cls

alias of yracing.weapon.weapon.audio.WeaponAudio

deg = 0
destroy()[source]
gfx_cls

alias of yracing.weapon.weapon.gfx.WeaponGfx

class yracing.weapon.weapon.weapon.WeaponFacade[source]

Bases: yyagl.facade.Facade

Module contents