@@ -57,7 +57,7 @@ def __init__(self):
5757
5858 self .renderer = Renderer (self ._game_interface )
5959
60- def _initialize_agent (self ):
60+ def _initialize (self ):
6161 # search match settings for our name
6262 for player in self .match_settings .player_configurations :
6363 if player .spawn_id == self .spawn_id :
@@ -66,7 +66,7 @@ def _initialize_agent(self):
6666 break
6767
6868 try :
69- self .initialize_agent ()
69+ self .initialize ()
7070 except Exception as e :
7171 self .logger .critical (
7272 "Bot %s failed to initialize due the following error: %s" , self .name , e
@@ -86,7 +86,7 @@ def _handle_match_settings(self, match_settings: flat.MatchSettings):
8686 and self ._has_field_info
8787 and self ._has_player_mapping
8888 ):
89- self ._initialize_agent ()
89+ self ._initialize ()
9090
9191 def _handle_field_info (self , field_info : flat .FieldInfo ):
9292 self .field_info = field_info
@@ -97,7 +97,7 @@ def _handle_field_info(self, field_info: flat.FieldInfo):
9797 and self ._has_match_settings
9898 and self ._has_player_mapping
9999 ):
100- self ._initialize_agent ()
100+ self ._initialize ()
101101
102102 def _handle_player_mappings (self , player_mappings : flat .TeamControllables ):
103103 self .team = player_mappings .team
@@ -111,7 +111,7 @@ def _handle_player_mappings(self, player_mappings: flat.TeamControllables):
111111 and self ._has_match_settings
112112 and self ._has_field_info
113113 ):
114- self ._initialize_agent ()
114+ self ._initialize ()
115115
116116 def _handle_ball_prediction (self , ball_prediction : flat .BallPrediction ):
117117 self ._latest_prediction = ball_prediction
@@ -260,12 +260,12 @@ def set_loadout(self, loadout: flat.PlayerLoadout, spawn_id: int):
260260 """
261261 Sets the loadout of a bot.
262262
263- For use as a loadout generator, call inside of `initialize_agent `.
264- Will be ignored if called outside of `initialize_agent ` when state setting is disabled.
263+ For use as a loadout generator, call inside of `initialize `.
264+ Will be ignored if called outside of `initialize ` when state setting is disabled.
265265 """
266266 self ._game_interface .send_set_loadout (flat .SetLoadout (spawn_id , loadout ))
267267
268- def initialize_agent (self ):
268+ def initialize (self ):
269269 """
270270 Called for all heaver initialization that needs to happen.
271271 Field info, match settings, name, index, and team are fully loaded at this point, and won't return garbage data.
0 commit comments