def onNetworkTimeRemaining(self, evt):
		"""Called whenever a NetworkTimeRemaining packet is received"""
		print "onNetworkTimeRemaining", evt.remaining
		self.remaining_time = evt.remaining
		minutes = int(self.remaining_time / 60)
		seconds = int(self.remaining_time % 60)
		helpers.setWidgetText("Windows/EOT", "EOT: %i:%02i" % (minutes, seconds))
		self.remaining_time_timer.reset()
		if self.remaining_time == 0:
			print "End of turn"
			helpers.setWindowProperty("Windows/EndTurnButton", "Alpha", 1)
			self.timeout = True
			network = self.parent.application.network
			network.Call(network.CacheUpdate)
	def update(self, evt):
		self.starmap.update()
		for i in range(settings.zoom_speed):
			self.updateCamera()

		if self.mouseover and self.mouseover_timer.getMilliseconds() > self.mouseover_timeout:
			self.information_overlay.show(self.mouseover, self.getCache())
			self.information_overlay.update(*self.mouse_position)

		if self.remaining_time > 0 and self.remaining_time_timer.getMilliseconds() >= 1000:
			self.remaining_time -= 1
			minutes = int(self.remaining_time / 60)
			seconds = int(self.remaining_time % 60)
			helpers.setWidgetText("Windows/EOT", "EOT: %i:%02i" % (minutes, seconds))
			self.remaining_time_timer.reset()
			if self.remaining_time < 10:
				helpers.setWindowProperty("Windows/EOT", "Alpha", 1)
			else:
				helpers.setWindowProperty("Windows/EOT", "Alpha", 0.5)

		#if self.parent.renderWindow.lastFPS < self.low_fps_threshold:
			#self.starmap.setIconView(True)
		return True
	def requestEOT(self, evt):
		print "Requesting EOT"
		helpers.setWindowProperty("Windows/EndTurnButton", "Alpha", 0.5)
		network = self.parent.application.network
		network.Call(network.RequestEOT)