Ejemplo n.º 1
0
	def LogPosition (self):
		timeStamp = round(viz.tick()-sgetGameLoadingTime(False),2)
		#record player position every 1 second
		if viz.tick() % 1 <= viz.getFrameElapsed():
			self._pLog.append((timeStamp, self._view.getPosition()[0], self._view.getPosition()[2]))
Ejemplo n.º 2
0
	def LogProximity (self, mach, inOut):
		timeStamp = round(viz.tick()-sgetGameLoadingTime(False),2)
		self._proxLog.append((timeStamp, self._player, mach, inOut))
Ejemplo n.º 3
0
	def LogInventory (self, tool, pickDrop):
		timeStamp = round(viz.tick()-sgetGameLoadingTime(False),2)
		self._iLog.append((timeStamp, self._player, tool, pickDrop))
Ejemplo n.º 4
0
	def ConvertTime(self, time):
		time = round(time-sgetGameLoadingTime(False), 2)
		mins = int(time/60)
		secs = int(time%60)
		return str(mins)+'\''+str(secs)+'\'\''
Ejemplo n.º 5
0
 def log_state_change(self, oldState, trigger, actions):
     timeStamp = round(viz.tick() - sgetGameLoadingTime(False), 2)
     self.sLog[timeStamp] = [oldState, trigger, self.currentState, actions]
Ejemplo n.º 6
0
 def log_user_data(self, user_input, actions):
     timeStamp = round(viz.tick() - sgetGameLoadingTime(False), 2)
     for u, i in user_input.iteritems():
         self.log.setdefault(u._player, []).append((i, actions, timeStamp))