Module Expr Str Import alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list decorator_list
N/A N/A 
Module for all game observers.
 N/A pygame pg N/A constants c N/A setup components attackitems N/A setup Battle N/A object N/A N/A 
    Observes events of battle and passes info to components.
     __init__ N/A N/A self level N/A N/A N/A N/A self level level N/A N/A self player N/A level player N/A N/A N/A self set_observer_for_enemies N/A N/A self event_dict N/A N/A self make_event_dict N/A set_observer_for_enemies N/A N/A self N/A N/A N/A enemy N/A N/A self level enemy_list N/A N/A N/A N/A N/A enemy observers append self N/A make_event_dict N/A N/A self N/A N/A N/A 
        Make a dictionary of events the Observer can
        receive.
         N/A event_dict N/A N/A c ENEMY_DEAD N/A c ENEMY_DAMAGED N/A c PLAYER_DAMAGED N/A self enemy_dead N/A self enemy_damaged N/A self player_damaged N/A event_dict N/A on_notify N/A N/A self event N/A N/A N/A 
        Notify Observer of event.
         N/A N/A event N/A self event_dict N/A N/A N/A N/A N/A self event_dict N/A event N/A player_damaged N/A N/A self N/A N/A N/A N/A N/A N/A self level enter_player_damaged_state N/A enemy_damaged N/A N/A self N/A N/A N/A 
        Make an attack animation over attacked enemy.
         N/A N/A N/A N/A self level enter_enemy_damaged_state N/A enemy_dead N/A N/A self N/A N/A N/A 
        Eliminate all traces of enemy.
         N/A N/A N/A N/A self level player attacked_enemy None N/A N/A SoundEffects N/A object N/A N/A 
    Observer for sound effects.
     on_notify N/A N/A self event N/A N/A N/A 
        Observer is notified of SFX event.
         N/A N/A event N/A setup SFX N/A N/A N/A N/A N/A N/A setup SFX N/A event play N/A N/A MusicChange N/A object N/A N/A 
    Observer for special music events.
     __init__ N/A N/A self N/A N/A N/A N/A self event_dict N/A N/A self make_event_dict N/A make_event_dict N/A N/A self N/A N/A N/A 
        Make a dictionary with events keyed to new music.
         N/A new_dict N/A N/A c BATTLE_WON enchanted_festival N/A new_dict N/A on_notify N/A N/A self event N/A N/A N/A 
        Observer is notified of change in music.
         N/A N/A event N/A self event_dict N/A N/A new_music N/A N/A self event_dict N/A event N/A N/A new_music N/A setup MUSIC N/A N/A music_file N/A N/A setup MUSIC N/A new_music N/A N/A N/A N/A N/A pg mixer music load music_file N/A N/A N/A N/A N/A pg mixer music play -1 N/A N/A