<s> """<STR_LIT>""" <EOL> import sys , sylphis <EOL> from string import * <EOL> from CSimpleActor import * <EOL> from util import manage <EOL> class CWorld ( CSimpleActor ) : <EOL> """<STR_LIT>""" <EOL> __classname__ = '<STR_LIT>' <EOL> __desc__ = '<STR_LIT>' '<STR_LIT>' '<STR_LIT>' <EOL> __actortype__ = '<STR_LIT:e>' <EOL> __specs__ = [ <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT:bool>' , '<STR_LIT>' : '<STR_LIT>' } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT:type>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } <EOL> ] <EOL> ambient_color = '<STR_LIT>' <EOL> sound_track = '<STR_LIT>' <EOL> fog = <NUM_LIT:0> <EOL> fog_color = sylphis . CVector3 ( <NUM_LIT:1.0> , <NUM_LIT:1.0> , <NUM_LIT:1.0> ) <EOL> fog_bounds = sylphis . CVector3 ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT:1.0> ) <EOL> def __init__ ( self , * args ) : <EOL> CSimpleActor . __init__ ( self , * args ) <EOL> def join ( self , ent ) : <EOL> """<STR_LIT>""" <EOL> CSimpleActor . join ( self , ent ) <EOL> o = split ( self . ambient_color ) <EOL> self . ambientLight = sylphis . CVector3 ( float ( o [ <NUM_LIT:0> ] ) , float ( o [ <NUM_LIT:1> ] ) , float ( o [ <NUM_LIT:2> ] ) ) <EOL> if self . sound_track != '<STR_LIT>' : <EOL> self . soundTrack = CEngine . mSoundEnv . registerSoundBuffer ( self . sound_track ) <EOL> self . track = manage ( sylphis . CSoundSource , CEngine . mSoundEnv ) <EOL> self . track . setBuffer ( self . soundTrack ) <EOL> self . track . setPosition ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> self . track . setSpatial ( <NUM_LIT:0> ) <EOL> self . mScene . getRootSceneNode ( ) . addChild ( self . track ) <EOL> def start ( self ) : <EOL> """<STR_LIT>""" <EOL> CSimpleActor . start ( self ) <EOL> self . mScene . setAmbientLight ( self . ambientLight ) <EOL> if hasattr ( self , '<STR_LIT>' ) : <EOL> self . track . play ( ) <EOL> if self . fog == <NUM_LIT:1> : <EOL> r = CEngine . renderer <EOL> r . setFogColor ( self . fog_color ) <EOL> r . setFogBounds ( self . fog_bounds . x , self . fog_bounds . y ) </s>
