def init(self, player_data):
     print("hosting: " + str(gamestate.hosting))
     self.register_network_callbacks()
     VersusModeState.init(self, player_data)
     
     #self.initialized = True
     #self.exit_indicator = False
     self.chatting = False
 def handle_exit_events(self):
     VersusModeState.handle_exit_events(self)
 def handle_match_state(self):
     VersusModeState.handle_match_state(self)
     
     if self.fight_end_timer > 8000:
         if self.match_state == MatchStates.PLAYER1_WINS or self.match_state == MatchStates.PLAYER2_WINS:
             versusclient.listener.end_match()
 def handle_events(self):
     VersusModeState.handle_events(self)
     
     self.handle_network_events()
 def __init__(self):
     VersusModeState.__init__(self)
     self.chatting = False