Esempio n. 1
0
	def set_playing_level_dir(self, dir):
		"""Sets the directory from which levels are being or to be
		played. If different from the current editing level dir,
		clears the editing level dir so that a pathname will be asked
		for the next time a level is saved."""
		#print "HEGame.set_playing_level_dir:", repr(dir) ###
		HLGame.set_playing_level_dir(self, dir)
		if self.editing_level_dir != self.playing_level_dir:
			self.editing_level_dir = None
Esempio n. 2
0
	def mark_current_level_completed(self):
		"""If the level is not being tested, add it to the list of completed levels
		for the current game."""
		if not self.testing:
			HLGame.mark_current_level_completed(self)
Esempio n. 3
0
	def load_level(self, path):
		HLGame.load_level(self, path)
		self.level_needs_saving = False