def set_trail_on(self, location): self._trail_on = True self._trail_start_location = tuple(location) if self._is_server: self._messages.append( Messages.trail_on(self._cycle_number, self._trail_on, self._trail_start_location))
def set_trail_off(self, location): if self._trail_on: self._trail.append((self._trail_start_location, tuple(location))) self._trail_on = False if self._is_server: self._messages.append( Messages.trail_on(self._cycle_number, self._trail_on, tuple(location)))