original_docstring: Handles cuwo's on_entity_update event.
          
          Keyword arguments:
          event -- Further information about what happened
          
          
docstring: Handles cuwo's on_entity_update event.
  Keyword arguments:
  event -- Further information about what happened
docstring_tokens: Handles cuwo ' s on_entity_update event . Keyword arguments : event -- Further information about what happened
code: def on_entity_update(self, event):
          """Handles cuwo's on_entity_update event.
          
          Keyword arguments:
          event -- Further information about what happened
          
          """
          if not self.__joined:
              self.__joined = True
              self.parent.game_state.player_join(self.connection)
              self.__last_hp = self.entity.hp
              self.old_pos = self.entity.pos
              self.old_time = datetime.now()
          else:
              if self.__last_hp <= 0 and self.entity.hp > 0:
                  self.parent.game_state.on_respawn(self.entity)
              self.__last_hp = self.entity.hp
code_tokens: def on_entity_update ( self , event ) : if not self . __joined : self . __joined = True self . parent . game_state . player_join ( self . connection ) self . __last_hp = self . entity . hp self . old_pos = self . entity . pos self . old_time = datetime . now ( ) else : if self . __last_hp <= 0 and self . entity . hp > 0 : self . parent . game_state . on_respawn ( self . entity ) self . __last_hp = self . entity . hp
short_docstring: Handles cuwo's on_entity_update event.
short_docstring_tokens: Handles cuwo ' s on_entity_update event .
comment: """Handles cuwo's on_entity_update event.
          
          Keyword arguments:
          event -- Further information about what happened
          
          """