yyagl.engine package

Submodules

yyagl.engine.audio module

class yyagl.engine.audio.EngineAudio(mediator, vol=1.0)[source]

Bases: yyagl.gameobject.AudioColleague

set_volume(vol)[source]

yyagl.engine.cbmux module

class yyagl.engine.cbmux.CallbackMux[source]

Bases: object

add_cb(func, args=[])[source]
process_callbacks(task)[source]

yyagl.engine.clock module

class yyagl.engine.clock.Clock(pause)[source]

Bases: object

on_pause()[source]
on_resume()[source]
property time

yyagl.engine.configuration module

class yyagl.engine.configuration.Cfg(gui_cfg=None, profiling_cfg=None, lang_cfg=None, cursor_cfg=None, dev_cfg=None)[source]

Bases: object

class yyagl.engine.configuration.CursorCfg(cursor_hidden=False, cursor_path='', cursor_scale=(1, 1, 1), cursor_hotspot=(0, 0))[source]

Bases: object

class yyagl.engine.configuration.DevCfg(mt_render=False, model_path='assets/models', shaders_dev=False, pbr=False, gamma=1.0, menu_joypad=True, verbose='', verbose_log=False, xmpp_server='', start_wp='', port=9099, server='localhost:9098', srgb=False, opengl_3_2=False)[source]

Bases: object

class yyagl.engine.configuration.GuiCfg(fps=False, win_size='1280 720', win_orig=None, win_title='yyagl', fullscreen=False, sync_video=None, antialiasing=False, shaders=True, volume=1, fixed_fps=0)[source]

Bases: object

class yyagl.engine.configuration.LangCfg(lang='en', lang_path='assets/locale', lang_domain='yyagl_game', languages=[('English', 'en')])[source]

Bases: object

class yyagl.engine.configuration.ProfilingCfg(profiling=False, pyprof_percall=False)[source]

Bases: object

yyagl.engine.engine module

class yyagl.engine.engine.Engine(cfg=None, end_cb=None, client_cls=None)[source]

Bases: yyagl.gameobject.GameObject, yyagl.engine.enginefacade.EngineFacade

destroy()[source]
network_priority = -39

yyagl.engine.enginefacade module

class yyagl.engine.enginefacade.EngineFacade[source]

Bases: yyagl.facade.Facade

load_model(filename, callback=None, anim=None)[source]
rm_do_later(tsk)[source]

yyagl.engine.event module

class yyagl.engine.event.EngineEvent(mediator, emulate_keyboard)[source]

Bases: yyagl.gameobject.EventColleague

static desc2key(desc)[source]
destroy()[source]
static key2desc(keystr)[source]

yyagl.engine.font module

class yyagl.engine.font.FontMgr[source]

Bases: yyagl.gameobject.GameObject

destroy()[source]
load_font(fpath, outline=True)[source]

yyagl.engine.gfx module

class yyagl.engine.gfx.EngineGfx(mediator, model_path, antialiasing, shaders, fps, srgb)[source]

Bases: yyagl.gameobject.GfxColleague

clean()[source]
init()[source]
load_model(filename, callback=None, anim=None)[source]
static particle(parent, texture, color=(1, 1, 1, 1), ampl=0.5235987755982988, ray=0.5, rate=0.0001, gravity=-0.85, vel=3.8, part_duration=1.0, autodestroy=None)[source]
print_stats()[source]
set_bloom()[source]
static set_frame_rate(fps)[source]
set_toon()[source]

yyagl.engine.joystick module

class yyagl.engine.joystick.JoystickMgr(emulate_keyboard)[source]

Bases: yyagl.gameobject.GameObject

bind_keyboard(nav)[source]
destroy()[source]
get_joystick(player_idx)[source]
get_joystick_val(player_idx, code)[source]
on_frame()[source]
static supported()[source]
unbind_keyboard(i)[source]
class yyagl.engine.joystick.JoystickState[source]

Bases: object

yyagl.engine.lang module

class yyagl.engine.lang.LangMgr(lang, domain, dpath)[source]

Bases: yyagl.gameobject.GameObject

property lang_codes
set_lang(lang)[source]

yyagl.engine.log module

class yyagl.engine.log.LogMgr(mediator)[source]

Bases: yyagl.engine.log.LogMgrBase

log_cfg()[source]
class yyagl.engine.log.LogMgrBase(mediator)[source]

Bases: yyagl.gameobject.Colleague

static init_cls()[source]
log(msg, verbose=False)[source]
log_cfg()[source]
log_tasks()[source]
plog(obj)[source]

yyagl.engine.logic module

class yyagl.engine.logic.EngineLogic(mediator, cfg=None)[source]

Bases: yyagl.gameobject.LogicColleague

static cmd_line()[source]
property curr_path
destroy()[source]
property is_runtime
property version
class yyagl.engine.logic.VersionChecker[source]

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

destroy()[source]
is_uptodate()[source]

yyagl.engine.particle module

yyagl.engine.pause module

class yyagl.engine.pause.PauseFacade[source]

Bases: yyagl.facade.Facade

class yyagl.engine.pause.PauseGui(mediator)[source]

Bases: yyagl.gameobject.GuiColleague

destroy()[source]
toggle(show_frm=True)[source]
class yyagl.engine.pause.PauseLogic(mediator)[source]

Bases: yyagl.gameobject.LogicColleague

destroy()[source]
pause()[source]
remove_task(tsk)[source]
resume()[source]
toggle(show_frm=True)[source]
class yyagl.engine.pause.PauseMgr(mediator)[source]

Bases: yyagl.gameobject.GameObject, yyagl.gameobject.Colleague, yyagl.engine.pause.PauseFacade

destroy()[source]
remove_task(tsk)[source]

yyagl.engine.phys module

class yyagl.engine.phys.CollInfo(node, time)[source]

Bases: object

class yyagl.engine.phys.PhysFacade[source]

Bases: yyagl.facade.Facade

class yyagl.engine.phys.PhysMgr(mediator)[source]

Bases: yyagl.gameobject.Colleague, yyagl.engine.phys.PhysFacade

add_collision_obj(node)[source]
on_frame()[source]
ray_test_closest(top, bottom)[source]
remove_collision_obj(node)[source]
reset()[source]
start()[source]
stop()[source]
toggle_dbg()[source]

yyagl.engine.profiler module

class yyagl.engine.profiler.AbsProfiler(percall)[source]

Bases: object

static build(percall)[source]
destroy()[source]
printstats()[source]
toggle()[source]
class yyagl.engine.profiler.PerCallProfiler(percall)[source]

Bases: yyagl.engine.profiler.Profiler

class yyagl.engine.profiler.Profiler(percall)[source]

Bases: yyagl.engine.profiler.AbsProfiler

printstats()[source]
toggle()[source]

yyagl.engine.shader module

yyagl.engine.vec module

Module contents