parameters: (self, agent)
return_statement: return True
docstring: reset the environment to its initial state
docstring_summary: reset the environment to its initial state
docstring_tokens: reset the environment to its initial state
function: def reset(self, agent):
          """
          reset the environment to its initial state
          """
          state = self.get_state(agent)
          state.total_damage = 0
          state.curr_damage = 0
          if agent.group == "Agent":
              state.randomize(*self.get_spawn(agent))
              agent.state.position = copy.copy(state.initial_position)
              agent.state.rotation = copy.copy(state.initial_rotation)
              agent.teleport()
  
          team = self.get_team(agent)
          team.reset(agent)
          return True
function_tokens: def reset ( self , agent ) : state = self . get_state ( agent ) state . total_damage = 0 state . curr_damage = 0 if agent . group == "Agent" : state . randomize ( * self . get_spawn ( agent ) ) agent . state . position = copy . copy ( state . initial_position ) agent . state . rotation = copy . copy ( state . initial_rotation ) agent . teleport ( ) team = self . get_team ( agent ) team . reset ( agent ) return True